Package org.alfresco.repo.transfer
Class TransferSummaryReportImpl
java.lang.Object
org.alfresco.repo.transfer.TransferSummaryReportImpl
- All Implemented Interfaces:
TransferSummaryReport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WritercreateUnderlyingLogWriter(String transferId) voidcalled to close the report filevoidlogSummaryComment(Object obj) log an ad-hoc messagevoidlogSummaryCreated(NodeRef sourceNode, NodeRef destNode, NodeRef newParent, String newPath, boolean orphan) Log the creation of a new nodevoidlogSummaryDeleted(NodeRef sourceNode, NodeRef destNode, String oldPath) Log the deletion of a nodevoidlogSummaryException(Object obj, Throwable ex) log an ad-hoc message and an exceptionvoidlogSummaryMoved(NodeRef sourceNodeRef, NodeRef destNodeRef, String oldPath, NodeRef newParent, String newPath) After the transfer has completed this method reads the log.voidlogSummaryUpdated(NodeRef sourceNode, NodeRef destNode, String path) Log the creation of a new nodevoidupdate the status of the transfervoidsetContentService(ContentService contentService) voidsetFileFolderService(FileFolderService fileFolderService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetSearchService(SearchService searchService) voidsetTransferSummaryReportLocation(String transferSummaryReportLocation)
-
Field Details
-
_SIMPLE_REPORT
- See Also:
-
-
Constructor Details
-
TransferSummaryReportImpl
-
-
Method Details
-
logSummaryCreated
public void logSummaryCreated(NodeRef sourceNode, NodeRef destNode, NodeRef newParent, String newPath, boolean orphan) Description copied from interface:TransferSummaryReportLog the creation of a new node- Specified by:
logSummaryCreatedin interfaceTransferSummaryReport- Parameters:
sourceNode- NodeRefdestNode- NodeRefnewParent- NodeRefnewPath- Stringorphan- boolean
-
logSummaryUpdated
Description copied from interface:TransferSummaryReportLog the creation of a new node- Specified by:
logSummaryUpdatedin interfaceTransferSummaryReport- Parameters:
sourceNode- NodeRefdestNode- NodeRefpath- The path of the updated node
-
logSummaryDeleted
Description copied from interface:TransferSummaryReportLog the deletion of a node- Specified by:
logSummaryDeletedin interfaceTransferSummaryReport- Parameters:
sourceNode- NodeRefdestNode- NodeRefoldPath- The path of the updated node
-
logSummaryMoved
public void logSummaryMoved(NodeRef sourceNodeRef, NodeRef destNodeRef, String oldPath, NodeRef newParent, String newPath) Description copied from interface:TransferSummaryReportAfter the transfer has completed this method reads the log.- Specified by:
logSummaryMovedin interfaceTransferSummaryReport- Parameters:
sourceNodeRef- NodeRefdestNodeRef- NodeRefoldPath- StringnewParent- NodeRefnewPath- String
-
logSummaryComment
Description copied from interface:TransferSummaryReportlog an ad-hoc message- Specified by:
logSummaryCommentin interfaceTransferSummaryReport- Parameters:
obj- Object- Throws:
TransferException
-
logSummaryException
Description copied from interface:TransferSummaryReportlog an ad-hoc message and an exception- Specified by:
logSummaryExceptionin interfaceTransferSummaryReport- Parameters:
obj- Objectex- Throwable- Throws:
TransferException
-
logSummaryUpdateStatus
Description copied from interface:TransferSummaryReportupdate the status of the transfer- Specified by:
logSummaryUpdateStatusin interfaceTransferSummaryReport- Parameters:
status- TransferProgress.Status- Throws:
TransferException
-
finishSummaryReport
public void finishSummaryReport()Description copied from interface:TransferSummaryReportcalled to close the report file- Specified by:
finishSummaryReportin interfaceTransferSummaryReport
-
createUnderlyingLogWriter
-
setTransferSummaryReportLocation
-
setFileFolderService
-
setContentService
-
setNodeService
-
setSearchService
-
setNamespaceService
-