|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.transfer.RepoTransferReceiverImpl
public class RepoTransferReceiverImpl
Nested Class Summary | |
---|---|
class |
RepoTransferReceiverImpl.AsyncCommitCommand
This embedded class is used to push requests for asynchronous commits onto a different thread |
Constructor Summary | |
---|---|
RepoTransferReceiverImpl()
|
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 |
TransferProgressMonitor |
getProgressMonitor()
|
java.io.File |
getStagingFolder(java.lang.String transferId)
|
TransferProgress |
getStatus(java.lang.String transferId)
|
NodeRef |
getTempFolder(java.lang.String transferId)
|
void |
init()
|
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 contentFileId,
java.io.InputStream contentStream)
|
void |
saveSnapshot(java.lang.String transferId,
java.io.InputStream openStream)
Store the specified snapshot file into the transfer staging area. |
void |
setActionService(ActionService actionService)
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter)
|
void |
setInboundTransferRecordsPath(java.lang.String inboundTransferRecordsPath)
|
void |
setManifestProcessorFactory(ManifestProcessorFactory manifestProcessorFactory)
|
void |
setNodeService(NodeService nodeService)
|
void |
setProgressMonitor(TransferProgressMonitor progressMonitor)
|
void |
setRootStagingDirectory(java.lang.String rootStagingDirectory)
|
void |
setSearchService(SearchService searchService)
|
void |
setTenantService(TenantService tenantService)
|
void |
setTransactionService(TransactionService transactionService)
|
void |
setTransferLockFolderPath(java.lang.String transferLockFolderPath)
|
void |
setTransferTempFolderPath(java.lang.String transferTempFolderPath)
|
java.lang.String |
start()
Asks the receiver to setup a new transfer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepoTransferReceiverImpl()
Method Detail |
---|
public void init()
public java.io.File getStagingFolder(java.lang.String transferId)
getStagingFolder
in interface TransferReceiver
public NodeRef getTempFolder(java.lang.String transferId)
getTempFolder
in interface TransferReceiver
public java.lang.String start()
TransferReceiver
start
in interface TransferReceiver
public void end(java.lang.String transferId)
TransferReceiver
end
in interface TransferReceiver
transferId
- The transfer to endpublic void cancel(java.lang.String transferId) throws TransferException
TransferReceiver
cancel
in interface TransferReceiver
TransferException
public void prepare(java.lang.String transferId) throws TransferException
TransferReceiver
prepare
in interface TransferReceiver
TransferException
public void nudgeLock(java.lang.String transferId) throws TransferException
TransferReceiver
nudgeLock
in interface TransferReceiver
TransferException
- if the lock doesn't exist or doesn't correspond to the supplied transferId.public void saveSnapshot(java.lang.String transferId, java.io.InputStream openStream) throws TransferException
TransferReceiver
saveSnapshot
in interface TransferReceiver
transferId
- The identifier of the transfer with which this snapshot is associatedopenStream
- The open stream that holds the snapshot file.
TransferException
- If an error occurs while saving the snapshot file.public void saveContent(java.lang.String transferId, java.lang.String contentFileId, java.io.InputStream contentStream) throws TransferException
saveContent
in interface TransferReceiver
TransferException
public void commitAsync(java.lang.String transferId)
TransferReceiver
commitAsync
in interface TransferReceiver
public void commit(java.lang.String transferId) throws TransferException
TransferReceiver
commit
in interface TransferReceiver
TransferException
public TransferProgress getStatus(java.lang.String transferId) throws TransferException
getStatus
in interface TransferReceiver
TransferException
public void setSearchService(SearchService searchService)
searchService
- the searchService to setpublic void setTransactionService(TransactionService transactionService)
transactionService
- the transactionService to setpublic void setTenantService(TenantService tenantService)
public void setTransferLockFolderPath(java.lang.String transferLockFolderPath)
transferLockFolderPath
- the transferLockFolderPath to setpublic void setTransferTempFolderPath(java.lang.String transferTempFolderPath)
transferTempFolderPath
- the transferTempFolderPath to setpublic void setRootStagingDirectory(java.lang.String rootStagingDirectory)
rootStagingDirectory
- the rootTransferFolder to setpublic void setInboundTransferRecordsPath(java.lang.String inboundTransferRecordsPath)
inboundTransferRecordsPath
- the inboundTransferRecordsPath to setpublic void setNodeService(NodeService nodeService)
nodeService
- the nodeService to setpublic void setManifestProcessorFactory(ManifestProcessorFactory manifestProcessorFactory)
manifestProcessorFactory
- the manifestProcessorFactory to setpublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
behaviourFilter
- the behaviourFilter to setpublic TransferProgressMonitor getProgressMonitor()
getProgressMonitor
in interface TransferReceiver
public void setProgressMonitor(TransferProgressMonitor progressMonitor)
progressMonitor
- the progressMonitor to setpublic void setActionService(ActionService actionService)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |