Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

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