public interface TransferReceiver
Modifier and Type | Method and Description |
---|---|
void |
cancel(String transferId)
Abort
|
void |
commit(String transferId)
Commit
|
void |
commitAsync(String transferId)
Commit asynchronously
|
void |
end(String transferId)
Asks the receiver to end (and clean up) the specified transfer
|
void |
generateRequsite(String transferId,
OutputStream requsiteStream)
Write the requsite (the bits required to support the Manifest) to the output stream.
|
TransferProgressMonitor |
getProgressMonitor() |
File |
getStagingFolder(String transferId) |
TransferProgress |
getStatus(String transferId) |
org.alfresco.service.cmr.repository.NodeRef |
getTempFolder(String transferId) |
InputStream |
getTransferReport(String transferId)
get the transfer report for the specified transfer
|
TransferVersion |
getVersion()
Get the version that we are transfering to.
|
void |
prepare(String transferId)
Prepare
|
void |
saveContent(String transferId,
String contentId,
InputStream contentStream)
Save a content item
|
void |
saveSnapshot(String transferId,
InputStream snapshotStream)
Store the specified snapshot file into the transfer staging area.
|
void |
setTransferRootNode(String rootFileSystem)
set the root node for the file system receiver
|
String |
start(String fromRepositoryId,
boolean allowTransferToSelf,
TransferVersion fromVersion)
Asks the receiver to setup a new transfer.
|
File getStagingFolder(String transferId)
transferId
- Stringorg.alfresco.service.cmr.repository.NodeRef getTempFolder(String transferId)
transferId
- StringString start(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(String transferId) throws TransferException
transferId
- The transfer to endTransferException
- If the process of ending the transfer failsvoid saveSnapshot(String transferId, 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(String transferId, String contentId, InputStream contentStream) throws TransferException
transferId
- StringcontentId
- StringcontentStream
- InputStreamTransferException
void generateRequsite(String transferId, OutputStream requsiteStream) throws TransferException
requsiteStream
- an open stream to receive the requisiteTransferException
void prepare(String transferId) throws TransferException
transferId
- StringTransferException
void cancel(String transferId) throws TransferException
transferId
- StringTransferException
void commitAsync(String transferId) throws TransferException
transferId
- StringTransferException
void commit(String transferId) throws TransferException
transferId
- StringTransferException
TransferProgress getStatus(String transferId) throws TransferException
transferId
- StringTransferException
TransferVersion getVersion()
TransferProgressMonitor getProgressMonitor()
InputStream getTransferReport(String transferId)
transferId
- Stringvoid setTransferRootNode(String rootFileSystem)
rootFileSystem
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.