public class FileStorageAppSoapStub extends com.collabnet.ce.soap60.webservices.ClientSoapStub implements IFileStorageAppSoap
Constructor and Description |
---|
FileStorageAppSoapStub(String soapServerUrl) |
Modifier and Type | Method and Description |
---|---|
DataHandler |
downloadFile(String sessionId,
String fileStorageId)
Downloads file as SOAP attachment.
|
DataHandler |
downloadFileDirect(String sessionId,
String containerId,
String rawFileId)
Downloads file Direct as SOAP attachment.
|
String |
uploadFile(String sessionId,
DataHandler file)
Uploads a file as SOAP attachment.
|
public FileStorageAppSoapStub(String soapServerUrl)
public String uploadFile(String sessionId, DataHandler file) throws RemoteException
IFileStorageAppSoap
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
public DataHandler downloadFile(String sessionId, String fileStorageId) throws RemoteException
IFileStorageAppSoap
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
public DataHandler downloadFileDirect(String sessionId, String containerId, String rawFileId) throws RemoteException
IFileStorageAppSoap
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
Copyright © 2016 CollabNet. All Rights Reserved.