public class SimpleFileStorageAppSoapStub extends com.collabnet.ce.soap60.webservices.ClientSoapStub implements ISimpleFileStorageAppSoap
Constructor and Description |
---|
SimpleFileStorageAppSoapStub(String soapServerUrl) |
Modifier and Type | Method and Description |
---|---|
void |
endFileUpload(String sessionId,
String fileStorageId)
Closes and saves uploaded file.
|
long |
getSize(String sessionId,
String fileStorageId)
Returns size of the specified temporary storage file in bytes.
|
byte[] |
read(String sessionId,
String fileStorageId,
int offset,
int length)
Reads from file a specified a number of bytes from the offset specified.
|
String |
startFileUpload(String sessionId)
Opens a new file descriptor for uploading and returns the temporary storage id.
|
void |
write(String sessionId,
String fileStorageId,
byte[] data)
Appends data to the file being uploaded.
|
public SimpleFileStorageAppSoapStub(String soapServerUrl)
public String startFileUpload(String sessionId) throws RemoteException
ISimpleFileStorageAppSoap
startFileUpload
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.RemoteException
public void write(String sessionId, String fileStorageId, byte[] data) throws RemoteException
ISimpleFileStorageAppSoap
write
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage for the file being uploaded.data
- Data to be uploaded.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
public void endFileUpload(String sessionId, String fileStorageId) throws RemoteException
ISimpleFileStorageAppSoap
endFileUpload
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage for the file to finish uploading.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
public long getSize(String sessionId, String fileStorageId) throws RemoteException
ISimpleFileStorageAppSoap
getSize
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
public byte[] read(String sessionId, String fileStorageId, int offset, int length) throws RemoteException
ISimpleFileStorageAppSoap
read
in interface ISimpleFileStorageAppSoap
sessionId
- User session id.fileStorageId
- Id of temporary file storage returned by DocmentApp.getDocumentFileId or FrsApp.getFrsFileIdoffset
- Offset within file from where to read.length
- Number of bytes to read.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error is encountered.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user doesn't have permission to view the filecom.collabnet.ce.soap60.fault.IllegalArgumentFault
- when the specified fileStorageId is invalid.RemoteException
Copyright © 2016 CollabNet. All Rights Reserved.