Class FileStorageAppSoapStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.filestorage.FileStorageAppSoapStub
- All Implemented Interfaces:
IFileStorageAppSoap
-
Field Summary
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.activation.DataHandler
downloadFile
(String sessionId, String fileStorageId) Downloads file as SOAP attachment.javax.activation.DataHandler
downloadFileDirect
(String sessionId, String containerId, String rawFileId) Downloads file Direct as SOAP attachment.uploadFile
(String sessionId, javax.activation.DataHandler file) Uploads a file as SOAP attachment.Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
Constructor Details
-
FileStorageAppSoapStub
-
-
Method Details
-
uploadFile
public String uploadFile(String sessionId, javax.activation.DataHandler file) throws RemoteException Description copied from interface:IFileStorageAppSoap
Uploads a file as SOAP attachment.- Specified by:
uploadFile
in interfaceIFileStorageAppSoap
- Parameters:
sessionId
- User session id.file
- SOAP file attachment.- Returns:
- File object id.
- Throws:
InvalidSessionFault
- when session is invalid (or not active).SystemFault
- when a system level error occurs.RemoteException
-
downloadFile
public javax.activation.DataHandler downloadFile(String sessionId, String fileStorageId) throws RemoteException Description copied from interface:IFileStorageAppSoap
Downloads file as SOAP attachment.- Specified by:
downloadFile
in interfaceIFileStorageAppSoap
- Parameters:
sessionId
- User session id.fileStorageId
- Id of temporary file storage returned by DocmentApp.getDocumentFileId or FrsApp.getFrsFileId- Returns:
- File as SOAP attachment.
- Throws:
InvalidSessionFault
- when session is invalid (or not active).PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when a system level error occurs.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
-
downloadFileDirect
public javax.activation.DataHandler downloadFileDirect(String sessionId, String containerId, String rawFileId) throws RemoteException Description copied from interface:IFileStorageAppSoap
Downloads file Direct as SOAP attachment.- Specified by:
downloadFileDirect
in interfaceIFileStorageAppSoap
- Parameters:
sessionId
- User session id.containerId
- The Folder which houses the attachmentrawFileId
- FileId to be downloaded- Returns:
- File as SOAP attachment.
- Throws:
InvalidSessionFault
- when session is invalid (or not active).PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when a system level error occurs.RemoteException
-