|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TransferReceiver
| Method Summary | |
|---|---|
void |
cancel(java.lang.String transferId)
Abort |
void |
commit(java.lang.String transferId)
Commit |
void |
commitAsync(java.lang.String transferId)
Commit asynchronously |
void |
end(java.lang.String transferId)
Asks the receiver to end (and clean up) the specified transfer |
void |
generateRequsite(java.lang.String transferId,
java.io.OutputStream requsiteStream)
Write the requsite (the bits required to support the Manifest) to the output stream. |
TransferProgressMonitor |
getProgressMonitor()
|
java.io.File |
getStagingFolder(java.lang.String transferId)
|
TransferProgress |
getStatus(java.lang.String transferId)
|
org.alfresco.service.cmr.repository.NodeRef |
getTempFolder(java.lang.String transferId)
|
java.io.InputStream |
getTransferReport(java.lang.String transferId)
get the transfer report for the specified transfer |
void |
nudgeLock(java.lang.String transferId)
Nudge the transfer lock (to prevent it expiring) if the supplied transferId matches that referenced by the lock. |
void |
prepare(java.lang.String transferId)
Prepare |
void |
saveContent(java.lang.String transferId,
java.lang.String contentId,
java.io.InputStream contentStream)
Save a content item |
void |
saveSnapshot(java.lang.String transferId,
java.io.InputStream snapshotStream)
Store the specified snapshot file into the transfer staging area. |
java.lang.String |
start()
Asks the receiver to setup a new transfer. |
| Method Detail |
|---|
java.io.File getStagingFolder(java.lang.String transferId)
transferId -
org.alfresco.service.cmr.repository.NodeRef getTempFolder(java.lang.String transferId)
transferId -
java.lang.String start()
throws TransferException
TransferException - if an error occurred while setting up the transfer
void end(java.lang.String transferId)
throws TransferException
transferId - The transfer to end
TransferException - If the process of ending the transfer fails
void nudgeLock(java.lang.String transferId)
throws TransferException
transferId -
TransferException - if the lock doesn't exist or doesn't correspond to the supplied transferId.
void saveSnapshot(java.lang.String transferId,
java.io.InputStream snapshotStream)
throws TransferException
transferId - The identifier of the transfer with which this snapshot is associatedsnapshotStream - The open stream that holds the snapshot file.
TransferException - If an error occurs while saving the snapshot file.
void saveContent(java.lang.String transferId,
java.lang.String contentId,
java.io.InputStream contentStream)
throws TransferException
transferId - contentId - contentStream -
TransferException
void generateRequsite(java.lang.String transferId,
java.io.OutputStream requsiteStream)
throws TransferException
requsiteStream - an open stream to receive the requisite
TransferException
void prepare(java.lang.String transferId)
throws TransferException
transferId -
TransferException
void cancel(java.lang.String transferId)
throws TransferException
transferId -
TransferException
void commitAsync(java.lang.String transferId)
throws TransferException
transferId -
TransferException
void commit(java.lang.String transferId)
throws TransferException
transferId -
TransferException
TransferProgress getStatus(java.lang.String transferId)
throws TransferException
transferId -
TransferExceptionTransferProgressMonitor getProgressMonitor()
java.io.InputStream getTransferReport(java.lang.String transferId)
transferId -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||