|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface
org.eclipse.emf.emfstore.internal.server.core.subinterfaces.FileTransferSubInterfaceImpl
public class FileTransferSubInterfaceImpl
The file transfer subinterface.
| Field Summary | |
|---|---|
static String |
ATTACHMENT_FOLDER
Attachment folder for uploads and downloads. |
static String |
FILE_NAME_DELIMITER
The delimiter that separates file attachment id, file version and file name in an uploaded file. |
static String |
TEMP_FOLDER
tmp folder for file uploads to server. |
| Constructor Summary | |
|---|---|
FileTransferSubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
|
|
| Method Summary | |
|---|---|
FileChunk |
downloadFileChunk(ProjectId projectId,
FileTransferInformation fileInformation)
Reads a chunk from the file linked to the fileInformation. |
FileTransferInformation |
uploadFileChunk(ProjectId projectId,
FileChunk fileChunk)
Writes a chunk to the file linked to the fileInformation in the fileChunk. |
| Methods inherited from class org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface |
|---|
execute, getResourceHelper |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TEMP_FOLDER
public static final String ATTACHMENT_FOLDER
public static final String FILE_NAME_DELIMITER
| Constructor Detail |
|---|
public FileTransferSubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
throws FatalESException
parentInterface - the parent interface
FatalESException - if any fatal error occurs| Method Detail |
|---|
public FileChunk downloadFileChunk(ProjectId projectId,
FileTransferInformation fileInformation)
throws FileTransferException,
InvalidInputException
projectId - project attachment folderfileInformation - file information object
FileTransferException - if any error occurs reading the file
InvalidInputException - thrown if one of the parameters is null
public FileTransferInformation uploadFileChunk(ProjectId projectId,
FileChunk fileChunk)
throws FileTransferException,
InvalidInputException
fileChunk - contains data and information about the file attachment, file version and chunk numberprojectId - project id
FileTransferException - if any error occurs writing to the file
InvalidInputException - thrown if one of the parameters is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||