Subversion Repositories XServices

Rev

Rev 92 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 92 Rev 111
Line 49... Line 49...
49
)
49
)
50
public interface FileService {
50
public interface FileService {
Line 51... Line 51...
51
 
51
 
52
	final String OPERATION_BASENAME ="basename";
52
	final String OPERATION_BASENAME ="basename";
53
	final String OPERATION_DOWNLOADFILE ="downloadFile";
-
 
54
	final String OPERATION_ENCODEFILE= "encodeFile";
53
	final String OPERATION_DOWNLOADFILE ="downloadFile";
55
	final String OPERATION_UPLOADFILE ="uploadFile";
54
	final String OPERATION_UPLOADFILE ="uploadFile";
56
	final String OPERATION_COPY ="copy";
55
	final String OPERATION_COPY ="copy";
57
	final String OPERATION_COPYFILE ="copyFile";
56
	final String OPERATION_COPYFILE ="copyFile";
58
	final String OPERATION_LOADRESOURCE = "loadResource";
57
	final String OPERATION_LOADRESOURCE = "loadResource";
Line 89... Line 88...
89
	@WebMethod(operationName = OPERATION_DOWNLOADFILE)
88
	@WebMethod(operationName = OPERATION_DOWNLOADFILE)
90
	public abstract AttachmentType downloadFile(
89
	public abstract AttachmentType downloadFile(
91
			@WebParam(name = FileResource.XML_NAME) FileResource res) throws XServicesFault;
90
			@WebParam(name = FileResource.XML_NAME) FileResource res) throws XServicesFault;
Line 92... Line 91...
92
	
91
	
93
	/**
-
 
94
	 * @param res
-
 
95
	 * @return Encodes a file
-
 
96
	 * @throws XServicesFault 
-
 
97
	 */
-
 
98
	@WSDLDocumentation(XServicesDocumentation.SERVICE_OPERATION_ENCODEFILE)
-
 
99
	@WebMethod(operationName = OPERATION_ENCODEFILE)
-
 
100
	public abstract byte[] encodeFile(
-
 
101
			@WebParam(name = FileResource.XML_NAME) FileResource res) throws XServicesFault;
-
 
102
	
-
 
103
	/**
92
	/**
104
	 * @param file
93
	 * @param file
105
	 * @return The file name of the file that has been uploaded.
94
	 * @return The file name of the file that has been uploaded.
106
	 * @throws XServicesFault 
95
	 * @throws XServicesFault 
107
	 */
96
	 */
Line 169... Line 158...
169
	/**
158
	/**
170
	 * @param message
159
	 * @param message
171
	 * @param file
160
	 * @param file
172
	 * @param encoding
161
	 * @param encoding
173
	 * @param append
162
	 * @param append
-
 
163
	 * @param create 
174
	 * @return
164
	 * @return
175
	 * @throws XServicesFault 
165
	 * @throws XServicesFault 
176
	 */
166
	 */
177
	@WSDLDocumentation(value = XServicesDocumentation.SERVICE_OPERATION_ECHOTOFILE)
167
	@WSDLDocumentation(value = XServicesDocumentation.SERVICE_OPERATION_ECHOTOFILE)
178
	@WebMethod(operationName = OPERATION_ECHOTOFILE)
168
	@WebMethod(operationName = OPERATION_ECHOTOFILE)
179
	public abstract ReturnCode echo2file(
169
	public abstract ReturnCode echo2file(
180
			@WebParam(name = "message") @XmlElement(required=true) String message,
170
			@WebParam(name = "message") @XmlElement(required=true) String message,
181
			@WebParam(name = PARAM_FILE) @XmlElement(required=true) String file,
171
			@WebParam(name = PARAM_FILE) @XmlElement(required=true) String file,
182
			@WebParam(name = PARAM_ENCODING) String encoding,
172
			@WebParam(name = PARAM_ENCODING) String encoding,
-
 
173
			@WebParam(name = "append") boolean append,
183
			@WebParam(name = "append") boolean append) throws XServicesFault;
174
			@WebParam(name = "create") boolean create) throws XServicesFault;
Line 184... Line 175...
184
 
175
 
185
	/**
176
	/**
186
	 * Changes the owner of a file or all files inside specified directories. 
177
	 * Changes the owner of a file or all files inside specified directories. 
187
	 * Right now it has effect only under Unix/ Linux as it is implemented through
178
	 * Right now it has effect only under Unix/ Linux as it is implemented through