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.
|
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.
|
public SimpleFileStorageAppSoapStub(String soapServerUrl)
public String startFileUpload(String sessionId) throws RemoteException
ISimpleFileStorageAppSoapstartFileUpload in interface ISimpleFileStorageAppSoapsessionId - 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.RemoteExceptionpublic void write(String sessionId, String fileStorageId, byte[] data) throws RemoteException
ISimpleFileStorageAppSoapwrite in interface ISimpleFileStorageAppSoapsessionId - 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.RemoteExceptionpublic void endFileUpload(String sessionId, String fileStorageId) throws RemoteException
ISimpleFileStorageAppSoapendFileUpload in interface ISimpleFileStorageAppSoapsessionId - 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.RemoteExceptionpublic long getSize(String sessionId, String fileStorageId) throws RemoteException
ISimpleFileStorageAppSoapgetSize in interface ISimpleFileStorageAppSoapsessionId - 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.RemoteExceptionpublic byte[] read(String sessionId, String fileStorageId, int offset, int length) throws RemoteException
ISimpleFileStorageAppSoapread in interface ISimpleFileStorageAppSoapsessionId - 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.RemoteExceptionpublic byte[] read2(String sessionId, String fileStorageId, long offset, int length) throws RemoteException
ISimpleFileStorageAppSoapread2 in interface ISimpleFileStorageAppSoapsessionId - 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.RemoteExceptionCopyright © 2016 CollabNet. All Rights Reserved.