Subversion Repositories XServices

Rev

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

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