Class XMLTransferDestinationReportWriter
- java.lang.Object
-
- org.alfresco.repo.transfer.reportd.XMLTransferDestinationReportWriter
-
- All Implemented Interfaces:
TransferDestinationReportWriter
public class XMLTransferDestinationReportWriter extends Object implements TransferDestinationReportWriter
Writes the Client Side Transfer Report out as XML.- Author:
- Mark Rogers
-
-
Constructor Summary
Constructors Constructor Description XMLTransferDestinationReportWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendTransferReport()End the transfer reportvoidstartTransferReport(String encoding, Writer writer)Start the transfer reportvoidwriteChangeState(String state)a change of statevoidwriteComment(String comment)An ad-hoc commentvoidwriteCreated(NodeRef sourceNodeRef, NodeRef newNode, NodeRef newParentNodeRef, String newPath)Reporting creation of a new nodevoidwriteDeleted(NodeRef sourceNodeRef, NodeRef deletedNode, String oldPath)Reporting a node deletedvoidwriteDestinationPath(String path)voidwriteException(Throwable e)Write the exception to the reportvoidwriteMoved(NodeRef sourceNodeRef, NodeRef updatedNode, String oldPath, NodeRef newParentNodeRef, String newPath)Reporting a node movedvoidwriteOldPath(String path)voidwriteUpdated(NodeRef sourceNodeRef, NodeRef updatedNode, String updatedPath)Reporting update of an existing node
-
-
-
Method Detail
-
startTransferReport
public void startTransferReport(String encoding, Writer writer)
Start the transfer report- Specified by:
startTransferReportin interfaceTransferDestinationReportWriter- Parameters:
encoding- the encoding to use, utf-8.writer- where to write the transfer report
-
endTransferReport
public void endTransferReport()
End the transfer report- Specified by:
endTransferReportin interfaceTransferDestinationReportWriter
-
writeChangeState
public void writeChangeState(String state)
Description copied from interface:TransferDestinationReportWritera change of state- Specified by:
writeChangeStatein interfaceTransferDestinationReportWriter
-
writeException
public void writeException(Throwable e)
Write the exception to the report- Specified by:
writeExceptionin interfaceTransferDestinationReportWriter
-
writeComment
public void writeComment(String comment)
Description copied from interface:TransferDestinationReportWriterAn ad-hoc comment- Specified by:
writeCommentin interfaceTransferDestinationReportWriter
-
writeCreated
public void writeCreated(NodeRef sourceNodeRef, NodeRef newNode, NodeRef newParentNodeRef, String newPath)
Description copied from interface:TransferDestinationReportWriterReporting creation of a new node- Specified by:
writeCreatedin interfaceTransferDestinationReportWriter
-
writeDeleted
public void writeDeleted(NodeRef sourceNodeRef, NodeRef deletedNode, String oldPath)
Description copied from interface:TransferDestinationReportWriterReporting a node deleted- Specified by:
writeDeletedin interfaceTransferDestinationReportWriter
-
writeMoved
public void writeMoved(NodeRef sourceNodeRef, NodeRef updatedNode, String oldPath, NodeRef newParentNodeRef, String newPath)
Description copied from interface:TransferDestinationReportWriterReporting a node moved- Specified by:
writeMovedin interfaceTransferDestinationReportWriter
-
writeUpdated
public void writeUpdated(NodeRef sourceNodeRef, NodeRef updatedNode, String updatedPath)
Description copied from interface:TransferDestinationReportWriterReporting update of an existing node- Specified by:
writeUpdatedin interfaceTransferDestinationReportWriter
-
writeOldPath
public void writeOldPath(String path)
-
writeDestinationPath
public void writeDestinationPath(String path)
-
-