Class FileStorageAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.filestorage.FileStorageAppSoapMockStub
- All Implemented Interfaces:
IFileStorageAppSoap
-
Field Summary
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
DATE_WILDCARD, GUIDKEY_WILDCARD, INTEGER_WILDCARD, LONG_WILDCARD, STRING_WILDCARD
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) Simulate a call to downloadFilejavax.activation.DataHandler
downloadFileDirect
(String sessionId, String containerId, String rawFileId) Simulate a call to downloadFileDirectvoid
prepareDownloadFile
(String sessionId, String fileStorageId, Object returnValue) Prepare a simulated response to downloadFilevoid
prepareDownloadFileDirect
(String sessionId, String containerId, String rawFileId, Object returnValue) Prepare a simulated response to downloadFileDirectvoid
prepareUploadFile
(String sessionId, javax.activation.DataHandler file, Object returnValue) Prepare a simulated response to uploadFileuploadFile
(String sessionId, javax.activation.DataHandler file) Simulate a call to uploadFileMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
Constructor Details
-
FileStorageAppSoapMockStub
-
-
Method Details
-
prepareUploadFile
public void prepareUploadFile(String sessionId, javax.activation.DataHandler file, Object returnValue) Prepare a simulated response to uploadFile -
uploadFile
public String uploadFile(String sessionId, javax.activation.DataHandler file) throws RemoteException Simulate a call to uploadFile- 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
- See Also:
-
prepareDownloadFile
Prepare a simulated response to downloadFile -
downloadFile
public javax.activation.DataHandler downloadFile(String sessionId, String fileStorageId) throws RemoteException Simulate a call to downloadFile- 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
- See Also:
-
prepareDownloadFileDirect
public void prepareDownloadFileDirect(String sessionId, String containerId, String rawFileId, Object returnValue) Prepare a simulated response to downloadFileDirect -
downloadFileDirect
public javax.activation.DataHandler downloadFileDirect(String sessionId, String containerId, String rawFileId) throws RemoteException Simulate a call to downloadFileDirect- 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
- See Also:
-