public interface ISimpleFileStorageAppSoap
Modifier and Type | Method and Description |
---|---|
void |
endFileUpload(java.lang.String sessionId,
java.lang.String fileStorageId)
Closes and saves uploaded file.
|
long |
getSize(java.lang.String sessionId,
java.lang.String fileStorageId)
Returns size of the specified temporary storage file in bytes.
|
byte[] |
read(java.lang.String sessionId,
java.lang.String fileStorageId,
int offset,
int length)
Reads from file a specified a number of bytes from the offset specified.
|
java.lang.String |
startFileUpload(java.lang.String sessionId)
Opens a new file descriptor for uploading and returns the temporary storage id.
|
void |
write(java.lang.String sessionId,
java.lang.String fileStorageId,
byte[] data)
Appends data to the file being uploaded.
|
java.lang.String startFileUpload(java.lang.String sessionId) throws java.rmi.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.java.rmi.RemoteException
void write(java.lang.String sessionId, java.lang.String fileStorageId, byte[] data) throws java.rmi.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.java.rmi.RemoteException
void endFileUpload(java.lang.String sessionId, java.lang.String fileStorageId) throws java.rmi.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.java.rmi.RemoteException
long getSize(java.lang.String sessionId, java.lang.String fileStorageId) throws java.rmi.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.java.rmi.RemoteException
byte[] read(java.lang.String sessionId, java.lang.String fileStorageId, int offset, int length) throws java.rmi.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.java.rmi.RemoteException