Package org.alfresco.repo.transfer
Interface TransferSummaryReport
- All Known Implementing Classes:
TransferSummaryReportImpl
public interface TransferSummaryReport
Used to log relevant changes to transfered files into a summary report of the
entire replication job;
It should log: created files, deleted, moved, *modified files and relevant
errors while handling the files;
*modified: each implementation would chose the definition of modified(actual
content modification/ new version/ some properties updated)
-
Method Summary
Modifier and TypeMethodDescriptionvoidcalled 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 path) 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 transfer
-
Method Details
-
logSummaryCreated
void logSummaryCreated(NodeRef sourceNode, NodeRef destNode, NodeRef newParent, String newPath, boolean orphan) Log the creation of a new node- Parameters:
sourceNode- NodeRefdestNode- NodeRefnewParent- NodeRefnewPath- Stringorphan- boolean
-
logSummaryUpdated
Log the creation of a new node- Parameters:
sourceNode- NodeRefdestNode- NodeRefpath- The path of the updated node
-
logSummaryDeleted
Log the deletion of a node- Parameters:
sourceNode- NodeRefdestNode- NodeRefpath- The path of the updated node
-
logSummaryMoved
void logSummaryMoved(NodeRef sourceNodeRef, NodeRef destNodeRef, String oldPath, NodeRef newParent, String newPath) After the transfer has completed this method reads the log.- Parameters:
sourceNodeRef- NodeRefdestNodeRef- NodeRefoldPath- StringnewParent- NodeRefnewPath- String
-
logSummaryComment
log an ad-hoc message- Parameters:
obj- Object- Throws:
TransferException
-
logSummaryException
log an ad-hoc message and an exception- Parameters:
obj- Objectex- Throwable- Throws:
TransferException
-
logSummaryUpdateStatus
update the status of the transfer- Parameters:
status- TransferProgress.Status- Throws:
TransferException
-
finishSummaryReport
void finishSummaryReport()called to close the report file
-