Subversion Repositories XServices

Rev

Rev 54 | Rev 64 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 63
1
package net.brutex.xservices.ws;
1
package net.brutex.xservices.ws;
-
 
2
 
-
 
3
import java.util.List;
2
 
4
 
3
import javax.activation.DataHandler;
5
import javax.activation.DataHandler;
4
import javax.jws.WebMethod;
6
import javax.jws.WebMethod;
5
import javax.jws.WebParam;
7
import javax.jws.WebParam;
6
import javax.jws.WebService;
8
import javax.jws.WebService;
7
 
9
 
8
import net.brutex.xservices.types.ArchiveResource;
10
import net.brutex.xservices.types.ArchiveResource;
9
import net.brutex.xservices.types.AttachmentType;
11
import net.brutex.xservices.types.AttachmentType;
10
import net.brutex.xservices.types.FileResource;
12
import net.brutex.xservices.types.FileResource;
11
import net.brutex.xservices.types.FileSetResource;
13
import net.brutex.xservices.types.FileSetResource;
-
 
14
import net.brutex.xservices.types.ReplacePattern;
12
import net.brutex.xservices.types.ReturnCode;
15
import net.brutex.xservices.types.ReturnCode;
13
import net.brutex.xservices.util.BrutexNamespaces;
16
import net.brutex.xservices.util.BrutexNamespaces;
14
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
17
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
15
public interface FileService {
18
public interface FileService {
16
 
19
 
17
	@WebMethod(operationName = "basename")
20
	@WebMethod(operationName = "basename")
18
	public abstract ReturnCode basename(
21
	public abstract ReturnCode basename(
19
			@WebParam(name = "file") String filename,
22
			@WebParam(name = "file") String filename,
20
			@WebParam(name = "suffix") String suffix);
23
			@WebParam(name = "suffix") String suffix);
21
 
24
 
22
	@WebMethod(operationName = "downloadFile")
25
	@WebMethod(operationName = "downloadFile")
23
	public abstract AttachmentType downloadFile(
26
	public abstract AttachmentType downloadFile(
24
			@WebParam(name = "file") FileResource res);
27
			@WebParam(name = "file") FileResource res);
25
	
28
	
26
	@WebMethod(operationName = "uploadFile")
29
	@WebMethod(operationName = "uploadFile")
27
	public abstract String uploadFile(
30
	public abstract String uploadFile(
28
			@WebParam(name = "file") AttachmentType file);
31
			@WebParam(name = "file") AttachmentType file);
29
			
32
			
30
	@WebMethod(operationName = "copy")
33
	@WebMethod(operationName = "copy")
31
	public abstract ReturnCode copy(
34
	public abstract ReturnCode copy(
32
			@WebParam(name = "fileset") FileSetResource src,
35
			@WebParam(name = "fileset") FileSetResource src,
33
			@WebParam(name = "todir") String todir,
36
			@WebParam(name = "todir") String todir,
34
			@WebParam(name = "preservelastmodified") boolean plm,
37
			@WebParam(name = "preservelastmodified") boolean plm,
35
			@WebParam(name = "overwrite") boolean overwrite,
38
			@WebParam(name = "overwrite") boolean overwrite,
36
			@WebParam(name = "encoding") String encoding) throws XServicesFault;
39
			@WebParam(name = "encoding") String encoding) throws XServicesFault;
37
 
40
 
38
	@WebMethod(operationName = "loadResource")
41
	@WebMethod(operationName = "loadResource")
39
	public abstract ReturnCode loadRes(
42
	public abstract ReturnCode loadRes(
40
			@WebParam(name = "resource") FileResource res,
43
			@WebParam(name = "resource") FileResource res,
41
			@WebParam(name = "encoding") String encoding);
44
			@WebParam(name = "encoding") String encoding);
42
 
45
 
43
	@WebMethod(operationName = "loadResourceFromArchive")
46
	@WebMethod(operationName = "loadResourceFromArchive")
44
	public abstract ReturnCode loadResFromArchive(
47
	public abstract ReturnCode loadResFromArchive(
45
			@WebParam(name = "archiveresource") ArchiveResource res,
48
			@WebParam(name = "archiveresource") ArchiveResource res,
46
			@WebParam(name = "encoding") String encoding);
49
			@WebParam(name = "encoding") String encoding);
47
 
50
 
48
	@WebMethod(operationName = "echoToFile")
51
	@WebMethod(operationName = "echoToFile")
49
	public abstract ReturnCode echo2file(
52
	public abstract ReturnCode echo2file(
50
			@WebParam(name = "message") String message,
53
			@WebParam(name = "message") String message,
51
			@WebParam(name = "file") String file,
54
			@WebParam(name = "file") String file,
52
			@WebParam(name = "encoding") String encoding,
55
			@WebParam(name = "encoding") String encoding,
53
			@WebParam(name = "append") boolean append);
56
			@WebParam(name = "append") boolean append);
54
 
57
 
55
	@WebMethod(operationName = "changeOwner")
58
	@WebMethod(operationName = "changeOwner")
56
	public abstract ReturnCode changeOwner(
59
	public abstract ReturnCode changeOwner(
57
			@WebParam(name = "fileset") FileSetResource res,
60
			@WebParam(name = "fileset") FileSetResource res,
58
			@WebParam(name = "owner") String owner);
61
			@WebParam(name = "owner") String owner);
59
 
62
 
60
	@WebMethod(operationName = "changeGroup")
63
	@WebMethod(operationName = "changeGroup")
61
	public abstract ReturnCode changeGroup(
64
	public abstract ReturnCode changeGroup(
62
			@WebParam(name = "fileset") FileSetResource res,
65
			@WebParam(name = "fileset") FileSetResource res,
63
			@WebParam(name = "group") String group);
66
			@WebParam(name = "group") String group);
64
 
67
 
65
	@WebMethod(operationName = "changeMode")
68
	@WebMethod(operationName = "changeMode")
66
	public abstract ReturnCode changeMode(
69
	public abstract ReturnCode changeMode(
67
			@WebParam(name = "fileset") FileSetResource res,
70
			@WebParam(name = "fileset") FileSetResource res,
68
			@WebParam(name = "permissions") String perm);
71
			@WebParam(name = "permissions") String perm);
69
 
72
	
-
 
73
	@WebMethod(operationName = "replaceInFile")
-
 
74
	public abstract ReturnCode replaceInFile(
-
 
75
			@WebParam(name = "file") FileResource res,
-
 
76
			@WebParam(name = "search") String search,
-
 
77
			@WebParam(name = "replace") String replace);
-
 
78
	
-
 
79
	@WebMethod(operationName = "replaceInFile2")
-
 
80
	public abstract ReturnCode replaceInFile2(
-
 
81
			@WebParam(name = "file") FileResource res,
-
 
82
			@WebParam(name = "patternList") List<ReplacePattern> patternList);
-
 
83
	
-
 
84
	@WebMethod(operationName = "replaceInFileRegEx")
-
 
85
	public abstract ReturnCode replaceInFileRegEx(
-
 
86
			@WebParam(name = "file") FileResource res,
-
 
87
			@WebParam(name = "search") String search,
-
 
88
			@WebParam(name = "replace") String replace,
-
 
89
			@WebParam(name = "flags") String flags);
70
}
90
}
71
 
91
 
72
Generated by GNU Enscript 1.6.5.90.
92
Generated by GNU Enscript 1.6.5.90.
73
 
93
 
74
 
94