public class TransferReporterImpl extends Object implements TransferReporter
| Constructor and Description |
|---|
TransferReporterImpl() |
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
createDestinationTransferReport(TransferTarget target) |
NodeRef |
createTransferReport(String transferName,
Exception e,
TransferTarget target,
TransferDefinition definition,
List<TransferEvent> events,
File snapshotFile)
Write exception transfer report
|
NodeRef |
createTransferReport(String transferName,
Transfer transfer,
TransferTarget target,
TransferDefinition definition,
List<TransferEvent> events,
File snapshotFile)
Create a new transfer report of success
|
ContentService |
getContentService() |
NodeService |
getNodeService() |
void |
init() |
void |
setContentService(ContentService contentService) |
void |
setNodeService(NodeService nodeService) |
NodeRef |
writeDestinationReport(String transferName,
TransferTarget target,
File tempFile)
Write the destination transfer report into the local repo.
|
public void init()
public NodeRef createDestinationTransferReport(TransferTarget target)
public NodeRef createTransferReport(String transferName, Exception e, TransferTarget target, TransferDefinition definition, List<TransferEvent> events, File snapshotFile)
createTransferReport in interface TransferReportertransferName - - the unique name of this transfer - probably based upon the time of transfer.e - the exceptiontarget - the target of the transferdefinition - the definition of the transfersnapshotFile - the snapshot filepublic NodeRef createTransferReport(String transferName, Transfer transfer, TransferTarget target, TransferDefinition definition, List<TransferEvent> events, File snapshotFile)
createTransferReport in interface TransferReportertransferName - - the unique name of this transfer - probably based upon the time of transfer.transfer - the transfer.target - the target of the transferdefinition - the definition of the transferevents - the transfer events generated by the transfer.snapshotFile - the snapshot filepublic NodeRef writeDestinationReport(String transferName, TransferTarget target, File tempFile)
TransferReporterwriteDestinationReport in interface TransferReportertransferName - the unique name of this transfer - probably based upon the time of transfer.target - the target of the transfertempFile - the temporary file containing the contents of the destination side transfer report.public void setNodeService(NodeService nodeService)
public NodeService getNodeService()
public void setContentService(ContentService contentService)
public ContentService getContentService()
Copyright © 2005–2020 Alfresco Software. All rights reserved.