Package org.alfresco.repo.transfer
Class TransferSummaryReportImpl
- java.lang.Object
-
- org.alfresco.repo.transfer.TransferSummaryReportImpl
-
- All Implemented Interfaces:
TransferSummaryReport
public class TransferSummaryReportImpl extends java.lang.Object implements TransferSummaryReport
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_SIMPLE_REPORT
-
Constructor Summary
Constructors Constructor Description TransferSummaryReportImpl(java.lang.String transferId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.WritercreateUnderlyingLogWriter(java.lang.String transferId)voidfinishSummaryReport()called to close the report filevoidlogSummaryComment(java.lang.Object obj)log an ad-hoc messagevoidlogSummaryCreated(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, org.alfresco.service.cmr.repository.NodeRef newParent, java.lang.String newPath, boolean orphan)Log the creation of a new nodevoidlogSummaryDeleted(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, java.lang.String oldPath)Log the deletion of a nodevoidlogSummaryException(java.lang.Object obj, java.lang.Throwable ex)log an ad-hoc message and an exceptionvoidlogSummaryMoved(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, java.lang.String oldPath, org.alfresco.service.cmr.repository.NodeRef newParent, java.lang.String newPath)After the transfer has completed this method reads the log.voidlogSummaryUpdated(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, java.lang.String path)Log the creation of a new nodevoidlogSummaryUpdateStatus(TransferProgress.Status status)update the status of the transfervoidsetContentService(ContentService contentService)voidsetFileFolderService(FileFolderService fileFolderService)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)voidsetTransferSummaryReportLocation(java.lang.String transferSummaryReportLocation)
-
-
-
Field Detail
-
_SIMPLE_REPORT
public static final java.lang.String _SIMPLE_REPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
logSummaryCreated
public void logSummaryCreated(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, org.alfresco.service.cmr.repository.NodeRef newParent, java.lang.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(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, java.lang.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(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, java.lang.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(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, java.lang.String oldPath, org.alfresco.service.cmr.repository.NodeRef newParent, java.lang.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(java.lang.Object obj) throws TransferExceptionDescription copied from interface:TransferSummaryReportlog an ad-hoc message- Specified by:
logSummaryCommentin interfaceTransferSummaryReport- Parameters:
obj- Object- Throws:
TransferException
-
logSummaryException
public void logSummaryException(java.lang.Object obj, java.lang.Throwable ex) throws TransferExceptionDescription 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
-
createUnderlyingLogWriter
protected java.io.Writer createUnderlyingLogWriter(java.lang.String transferId)
-
setTransferSummaryReportLocation
public void setTransferSummaryReportLocation(java.lang.String transferSummaryReportLocation)
-
setFileFolderService
public void setFileFolderService(FileFolderService fileFolderService)
-
setContentService
public void setContentService(ContentService contentService)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setSearchService
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
-
-