public interface FileManagementEntity extends Remote
| Modifier and Type | Method and Description |
|---|---|
void |
cancelReceiving(String transferId,
int sessionId)
Cancels the file reception
|
boolean |
deleteAttachmentFile(Hashtable keys,
int sessionId) |
boolean |
finishReceiving(String transferId,
int sessionId)
Indicates that the transfer process is finished
|
BytesBlock |
getBytes(String transferId,
int offset,
int lenght,
int sessionId)
Gets a
BytesBlock with the bytes from offset and with the
specified length. |
String |
getExtension(String transferId)
Get the file extension.
|
long |
getSize(String transferId)
The file size is returned if it is known.
|
String |
prepareToReceive(Hashtable keys,
String fileName,
String fileDescription,
int sessionId) |
String |
prepareToReceive(Hashtable keys,
String fileName,
String originalFilePath,
String fileDescription,
int sessionId) |
String |
prepareToReceive(String column,
Hashtable keys,
int sessionId)
Indicates the entity must prepare for receiving file content.
|
String |
prepareToTransfer(Hashtable cv,
int sessionId) |
String |
prepareToTransfer(String column,
Hashtable keys,
int sessionId)
Indicates the entity must prepare for transferring file content.
|
void |
putBytes(String transferId,
BytesBlock bytesBlock,
int sessionId) |
long getSize(String transferId) throws Exception
transferId - ExceptionString getExtension(String transferId) throws Exception
transferId - ExceptionString prepareToTransfer(String column, Hashtable keys, int sessionId) throws Exception
column - keys - sessionId - ExceptionString prepareToReceive(String column, Hashtable keys, int sessionId) throws Exception
column - keys - sessionId - ExceptionString prepareToTransfer(Hashtable cv, int sessionId) throws Exception
ExceptionString prepareToReceive(Hashtable keys, String fileName, String fileDescription, int sessionId) throws Exception
ExceptionString prepareToReceive(Hashtable keys, String fileName, String originalFilePath, String fileDescription, int sessionId) throws Exception
ExceptionBytesBlock getBytes(String transferId, int offset, int lenght, int sessionId) throws Exception
BytesBlock with the bytes from offset and with the
specified length. Return null if it is the end of the file. The
prepareToTransfer method must be called previously to get the
'transferId' value.transferId - offset - lenght - sessionId - Exceptionvoid putBytes(String transferId, BytesBlock bytesBlock, int sessionId) throws Exception
Exceptionboolean finishReceiving(String transferId, int sessionId) throws Exception
transferId - sessionId - Exceptionvoid cancelReceiving(String transferId, int sessionId) throws Exception
transferId - sessionId - ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.