Package org.alfresco.repo.transfer
Class TransferSummaryReportImpl
- java.lang.Object
-
- org.alfresco.repo.transfer.TransferSummaryReportImpl
-
- All Implemented Interfaces:
TransferSummaryReport
public class TransferSummaryReportImpl extends Object implements TransferSummaryReport
-
-
Field Summary
Fields Modifier and Type Field Description static String_SIMPLE_REPORT
-
Constructor Summary
Constructors Constructor Description TransferSummaryReportImpl(String transferId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WritercreateUnderlyingLogWriter(String transferId)voidfinishSummaryReport()called 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 nodevoidlogSummaryUpdateStatus(TransferProgress.Status status)update the status of the transfervoidsetContentService(ContentService contentService)voidsetFileFolderService(FileFolderService fileFolderService)voidsetNamespaceService(NamespaceService namespaceService)voidsetNodeService(NodeService nodeService)voidsetSearchService(SearchService searchService)voidsetTransferSummaryReportLocation(String transferSummaryReportLocation)
-
-
-
Field Detail
-
_SIMPLE_REPORT
public static final String _SIMPLE_REPORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransferSummaryReportImpl
public TransferSummaryReportImpl(String transferId)
-
-
Method Detail
-
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
public void logSummaryUpdated(NodeRef sourceNode, NodeRef destNode, String path)
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
public void logSummaryDeleted(NodeRef sourceNode, NodeRef destNode, String oldPath)
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
public void logSummaryComment(Object obj) throws TransferException
Description copied from interface:TransferSummaryReportlog an ad-hoc message- Specified by:
logSummaryCommentin interfaceTransferSummaryReport- Parameters:
obj- Object- Throws:
TransferException
-
logSummaryException
public void logSummaryException(Object obj, Throwable ex) throws TransferException
Description copied from interface:TransferSummaryReportlog an ad-hoc message and an exception- Specified by:
logSummaryExceptionin interfaceTransferSummaryReport- Parameters:
obj- Objectex- Throwable- Throws:
TransferException
-
logSummaryUpdateStatus
public void logSummaryUpdateStatus(TransferProgress.Status status) throws TransferException
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
-
setTransferSummaryReportLocation
public void setTransferSummaryReportLocation(String transferSummaryReportLocation)
-
setFileFolderService
public void setFileFolderService(FileFolderService fileFolderService)
-
setContentService
public void setContentService(ContentService contentService)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setSearchService
public void setSearchService(SearchService searchService)
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
-
-