public class FileStorageAppSoapMockStub extends com.collabnet.ce.soap60.webservices.ClientSoapMockStub implements IFileStorageAppSoap
Constructor and Description |
---|
FileStorageAppSoapMockStub(String soapServerUrl) |
Modifier and Type | Method and Description |
---|---|
DataHandler |
downloadFile(String sessionId,
String fileStorageId)
Simulate a call to downloadFile
|
DataHandler |
downloadFileDirect(String sessionId,
String containerId,
String rawFileId)
Simulate a call to downloadFileDirect
|
void |
prepareDownloadFile(String sessionId,
String fileStorageId,
Object returnValue)
Prepare a simulated response to downloadFile
|
void |
prepareDownloadFileDirect(String sessionId,
String containerId,
String rawFileId,
Object returnValue)
Prepare a simulated response to downloadFileDirect
|
void |
prepareUploadFile(String sessionId,
DataHandler file,
Object returnValue)
Prepare a simulated response to uploadFile
|
String |
uploadFile(String sessionId,
DataHandler file)
Simulate a call to uploadFile
|
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
public FileStorageAppSoapMockStub(String soapServerUrl)
public void prepareUploadFile(String sessionId, DataHandler file, Object returnValue)
FileStorageAppSoap.uploadFile(java.lang.String, javax.activation.DataHandler)
public String uploadFile(String sessionId, DataHandler file) throws RemoteException
uploadFile
in interface IFileStorageAppSoap
sessionId
- User session id.file
- SOAP file attachment.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when session is invalid (or not active).com.collabnet.ce.soap60.fault.SystemFault
- when a system level error occurs.RemoteException
FileStorageAppSoap.uploadFile(java.lang.String, javax.activation.DataHandler)
public void prepareDownloadFile(String sessionId, String fileStorageId, Object returnValue)
FileStorageAppSoap.downloadFile(java.lang.String, java.lang.String)
public DataHandler downloadFile(String sessionId, String fileStorageId) throws RemoteException
downloadFile
in interface IFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage returned by DocmentApp.getDocumentFileId or FrsApp.getFrsFileIdcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session is invalid (or not active).com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when a system level error occurs.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
FileStorageAppSoap.downloadFile(java.lang.String, java.lang.String)
public void prepareDownloadFileDirect(String sessionId, String containerId, String rawFileId, Object returnValue)
FileStorageAppSoap.downloadFileDirect(java.lang.String, java.lang.String, java.lang.String)
public DataHandler downloadFileDirect(String sessionId, String containerId, String rawFileId) throws RemoteException
downloadFileDirect
in interface IFileStorageAppSoap
sessionId
- User session id.containerId
- The Folder which houses the attachmentrawFileId
- FileId to be downloadedcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session is invalid (or not active).com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when a system level error occurs.RemoteException
FileStorageAppSoap.downloadFileDirect(java.lang.String, java.lang.String, java.lang.String)
Copyright © 2016 CollabNet. All Rights Reserved.