public interface TransferReceiver
| Modifier and Type | Method and Description |
|---|---|
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
|
TransferVersion |
getVersion()
Get the version that we are transfering to.
|
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.
|
void |
setTransferRootNode(java.lang.String rootFileSystem)
set the root node for the file system receiver
|
java.lang.String |
start(java.lang.String fromRepositoryId,
boolean allowTransferToSelf,
TransferVersion fromVersion)
Asks the receiver to setup a new transfer.
|
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(java.lang.String fromRepositoryId,
boolean allowTransferToSelf,
TransferVersion fromVersion)
throws TransferException
fromRepositoryId - the repositoryId of the sending systemallowTransferToSelf - are transfers to the same repository allowed?fromVersion - the version sendingTransferException - if an error occurred while setting up the transfervoid end(java.lang.String transferId)
throws TransferException
transferId - The transfer to endTransferException - If the process of ending the transfer failsvoid 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 - TransferExceptionvoid generateRequsite(java.lang.String transferId,
java.io.OutputStream requsiteStream)
throws TransferException
requsiteStream - an open stream to receive the requisiteTransferExceptionvoid prepare(java.lang.String transferId)
throws TransferException
transferId - TransferExceptionvoid cancel(java.lang.String transferId)
throws TransferException
transferId - TransferExceptionvoid commitAsync(java.lang.String transferId)
throws TransferException
transferId - TransferExceptionvoid commit(java.lang.String transferId)
throws TransferException
transferId - TransferExceptionTransferProgress getStatus(java.lang.String transferId) throws TransferException
transferId - TransferExceptionTransferVersion getVersion()
TransferProgressMonitor getProgressMonitor()
java.io.InputStream getTransferReport(java.lang.String transferId)
transferId - void setTransferRootNode(java.lang.String rootFileSystem)
rootFileSystem - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.