Class TransferReporterImpl
java.lang.Object
org.alfresco.repo.transfer.report.TransferReporterImpl
- All Implemented Interfaces:
TransferReporter
Implementation of TransferReporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTransferReport(String transferName, Exception e, TransferTarget target, TransferDefinition definition, List<TransferEvent> events, File snapshotFile) Write exception transfer reportcreateTransferReport(String transferName, Transfer transfer, TransferTarget target, TransferDefinition definition, List<TransferEvent> events, File snapshotFile) Create a new transfer report of successvoidinit()voidsetContentService(ContentService contentService) voidsetNodeService(NodeService nodeService) writeDestinationReport(String transferName, TransferTarget target, File tempFile) Write the destination transfer report into the local repo.
-
Constructor Details
-
TransferReporterImpl
public TransferReporterImpl()
-
-
Method Details
-
init
public void init() -
createDestinationTransferReport
-
createTransferReport
public NodeRef createTransferReport(String transferName, Exception e, TransferTarget target, TransferDefinition definition, List<TransferEvent> events, File snapshotFile) Write exception transfer report- Specified by:
createTransferReportin interfaceTransferReporter- Parameters:
transferName- - 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 file- Returns:
- NodeRef the node ref of the new transfer report
-
createTransferReport
public NodeRef createTransferReport(String transferName, Transfer transfer, TransferTarget target, TransferDefinition definition, List<TransferEvent> events, File snapshotFile) Create a new transfer report of success- Specified by:
createTransferReportin interfaceTransferReporter- Parameters:
transferName- - 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 file- Returns:
- NodeRef the node ref of the new transfer report
-
writeDestinationReport
Description copied from interface:TransferReporterWrite the destination transfer report into the local repo.- Specified by:
writeDestinationReportin interfaceTransferReporter- Parameters:
transferName- 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.- Returns:
- the node ref of the transfer report
-
setNodeService
-
getNodeService
-
setContentService
-
getContentService
-