public class XMLTransferDestinationReportWriter extends Object implements TransferDestinationReportWriter
Constructor and Description |
---|
XMLTransferDestinationReportWriter() |
Modifier and Type | Method and Description |
---|---|
void |
endTransferReport()
End the transfer report
|
void |
startTransferReport(String encoding,
Writer writer)
Start the transfer report
|
void |
writeChangeState(String state)
a change of state
|
void |
writeComment(String comment)
An ad-hoc comment
|
void |
writeCreated(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef newNode,
org.alfresco.service.cmr.repository.NodeRef newParentNodeRef,
String newPath)
Reporting creation of a new node
|
void |
writeDeleted(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef deletedNode,
String oldPath)
Reporting a node deleted
|
void |
writeDestinationPath(String path) |
void |
writeException(Throwable e)
Write the exception to the report
|
void |
writeMoved(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef updatedNode,
String oldPath,
org.alfresco.service.cmr.repository.NodeRef newParentNodeRef,
String newPath)
Reporting a node moved
|
void |
writeOldPath(String path) |
void |
writeUpdated(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef updatedNode,
String updatedPath)
Reporting update of an existing node
|
public void startTransferReport(String encoding, Writer writer)
startTransferReport
in interface TransferDestinationReportWriter
encoding
- the encoding to use, utf-8.writer
- where to write the transfer reportpublic void endTransferReport()
endTransferReport
in interface TransferDestinationReportWriter
public void writeChangeState(String state)
TransferDestinationReportWriter
writeChangeState
in interface TransferDestinationReportWriter
public void writeException(Throwable e)
writeException
in interface TransferDestinationReportWriter
public void writeComment(String comment)
TransferDestinationReportWriter
writeComment
in interface TransferDestinationReportWriter
public void writeCreated(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef newNode, org.alfresco.service.cmr.repository.NodeRef newParentNodeRef, String newPath)
TransferDestinationReportWriter
writeCreated
in interface TransferDestinationReportWriter
public void writeDeleted(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef deletedNode, String oldPath)
TransferDestinationReportWriter
writeDeleted
in interface TransferDestinationReportWriter
public void writeMoved(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef updatedNode, String oldPath, org.alfresco.service.cmr.repository.NodeRef newParentNodeRef, String newPath)
TransferDestinationReportWriter
writeMoved
in interface TransferDestinationReportWriter
public void writeUpdated(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef updatedNode, String updatedPath)
TransferDestinationReportWriter
writeUpdated
in interface TransferDestinationReportWriter
public void writeOldPath(String path)
public void writeDestinationPath(String path)
Copyright © 2005–2017 Alfresco Software. All rights reserved.