public interface TransferListener
HookableTransferMonitorImpl class via its
HookableTransferMonitorImpl.setListeners(java.util.List) method.| Modifier and Type | Method and Description |
|---|---|
void |
created(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef parentNode,
String newPath,
boolean orphan)
Called when a folder or file is created in response to an inbound transfer.
|
void |
deleted(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
String path)
Called when a folder or file is deleted in response to an inbound transfer.
|
void |
moved(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
String oldPath,
org.alfresco.service.cmr.repository.NodeRef newParent,
String newPath)
Called when a folder or file is moved in response to an inbound transfer.
|
void |
statusChanged(String transferId,
org.alfresco.service.cmr.transfer.TransferProgress.Status status)
Called when an inbound transfer changes state.
|
void |
updated(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
String path)
Called when a file is updated in response to an inbound transfer.
|
void created(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef parentNode, String newPath, boolean orphan) throws org.alfresco.service.cmr.transfer.TransferException
transferId - The identifier of the transfer currently in progress.sourceNode - The identifier of the node from the source repositoryparentNode - The identifier of the parent node from the source repositorynewPath - The path to the file/folder that has been createdorphan - True if the parent folder does not currently exist locally. In this case the new file/folder
will have been created in a temporary locationorg.alfresco.service.cmr.transfer.TransferException - Throwing an exception from this operation will cause the transfer to stop.void deleted(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, String path) throws org.alfresco.service.cmr.transfer.TransferException
transferId - The identifier of the transfer currently in progress.sourceNode - The identifier of the node from the source repositorypath - The path of the file/folder that has been deletedorg.alfresco.service.cmr.transfer.TransferException - Throwing an exception from this operation will cause the transfer to stop.void moved(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, String oldPath, org.alfresco.service.cmr.repository.NodeRef newParent, String newPath) throws org.alfresco.service.cmr.transfer.TransferException
transferId - The identifier of the transfer currently in progress.sourceNode - The identifier of the node from the source repositoryoldPath - The location where the file/folder used to benewParent - The identifier of the new parent node in the source repositorynewPath - The location to which the file/folder has been movedorg.alfresco.service.cmr.transfer.TransferException - Throwing an exception from this operation will cause the transfer to stop.void updated(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, String path) throws org.alfresco.service.cmr.transfer.TransferException
transferId - The identifier of the transfer currently in progress.sourceNode - The identifier of the node from the source repositorypath - The location of the file that has been updated.org.alfresco.service.cmr.transfer.TransferException - Throwing an exception from this operation will cause the transfer to stop.void statusChanged(String transferId, org.alfresco.service.cmr.transfer.TransferProgress.Status status) throws org.alfresco.service.cmr.transfer.TransferException
TransferProgress.Status for the possible statuses.transferId - The identifier of the transfer currently in progress.status - The new status of the transfer.org.alfresco.service.cmr.transfer.TransferException - Throwing an exception from this operation will cause the transfer to stop
if it isn't already complete.TransferProgress.StatusCopyright © 2005–2014 Alfresco Software. All rights reserved.