public interface ISimpleFileStorageAppSoap
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.
|
byte[] |
read2(String sessionId,
String fileStorageId,
long 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.
|
String startFileUpload(String sessionId) throws RemoteException
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
void write(String sessionId, String fileStorageId, byte[] data) throws RemoteException
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
void endFileUpload(String sessionId, String fileStorageId) throws RemoteException
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
long getSize(String sessionId, String fileStorageId) throws RemoteException
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
byte[] read(String sessionId, String fileStorageId, int offset, int length) throws RemoteException
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
byte[] read2(String sessionId, String fileStorageId, long offset, int length) throws RemoteException
sessionId
- User session id.fileStorageId
- Id of temporary file storage returned by DocmentApp.getDocumentFileId or FrsApp.getFrsFileIdoffset
- Offset within file from where to read (long).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.