public class TransferSummaryReportImpl extends Object implements TransferSummaryReport
Modifier and Type | Field and Description |
---|---|
static String |
_SIMPLE_REPORT |
Constructor and Description |
---|
TransferSummaryReportImpl(String transferId) |
Modifier and Type | Method and Description |
---|---|
protected Writer |
createUnderlyingLogWriter(String transferId) |
void |
finishSummaryReport()
called to close the report file
|
void |
logSummaryComment(Object obj)
log an ad-hoc message
|
void |
logSummaryCreated(org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef destNode,
org.alfresco.service.cmr.repository.NodeRef newParent,
String newPath,
boolean orphan)
Log the creation of a new node
|
void |
logSummaryDeleted(org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef destNode,
String oldPath)
Log the deletion of a node
|
void |
logSummaryException(Object obj,
Throwable ex)
log an ad-hoc message and an exception
|
void |
logSummaryMoved(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef destNodeRef,
String oldPath,
org.alfresco.service.cmr.repository.NodeRef newParent,
String newPath)
After the transfer has completed this method reads the log.
|
void |
logSummaryUpdated(org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef destNode,
String path)
Log the creation of a new node
|
void |
logSummaryUpdateStatus(TransferProgress.Status status)
update the status of the transfer
|
void |
setContentService(ContentService contentService) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
setTransferSummaryReportLocation(String transferSummaryReportLocation) |
public static final String _SIMPLE_REPORT
public TransferSummaryReportImpl(String transferId)
public void logSummaryCreated(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, org.alfresco.service.cmr.repository.NodeRef newParent, String newPath, boolean orphan)
TransferSummaryReport
logSummaryCreated
in interface TransferSummaryReport
sourceNode
- NodeRefdestNode
- NodeRefnewParent
- NodeRefnewPath
- Stringorphan
- booleanpublic void logSummaryUpdated(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, String path)
TransferSummaryReport
logSummaryUpdated
in interface TransferSummaryReport
sourceNode
- NodeRefdestNode
- NodeRefpath
- The path of the updated nodepublic void logSummaryDeleted(org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, String oldPath)
TransferSummaryReport
logSummaryDeleted
in interface TransferSummaryReport
sourceNode
- NodeRefdestNode
- NodeRefoldPath
- The path of the updated nodepublic void logSummaryMoved(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, String oldPath, org.alfresco.service.cmr.repository.NodeRef newParent, String newPath)
TransferSummaryReport
logSummaryMoved
in interface TransferSummaryReport
sourceNodeRef
- NodeRefdestNodeRef
- NodeRefoldPath
- StringnewParent
- NodeRefnewPath
- Stringpublic void logSummaryComment(Object obj) throws TransferException
TransferSummaryReport
logSummaryComment
in interface TransferSummaryReport
obj
- ObjectTransferException
public void logSummaryException(Object obj, Throwable ex) throws TransferException
TransferSummaryReport
logSummaryException
in interface TransferSummaryReport
obj
- Objectex
- ThrowableTransferException
public void logSummaryUpdateStatus(TransferProgress.Status status) throws TransferException
TransferSummaryReport
logSummaryUpdateStatus
in interface TransferSummaryReport
status
- TransferProgress.StatusTransferException
public void finishSummaryReport()
TransferSummaryReport
finishSummaryReport
in interface TransferSummaryReport
public void setTransferSummaryReportLocation(String transferSummaryReportLocation)
public void setFileFolderService(FileFolderService fileFolderService)
public void setContentService(ContentService contentService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Copyright © 2005–2017 Alfresco Software. All rights reserved.