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