mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-4126 - F85 Target transfer log in XML
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,7 @@ import org.alfresco.repo.transfer.manifest.TransferManifestNormalNode;
|
||||
import org.alfresco.repo.transfer.manifest.TransferManifestProcessor;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.Path;
|
||||
import org.alfresco.service.cmr.transfer.TransferException;
|
||||
import org.alfresco.service.cmr.transfer.TransferProgress;
|
||||
import org.alfresco.service.cmr.transfer.TransferReceiver;
|
||||
@@ -187,7 +188,7 @@ public abstract class AbstractManifestProcessorBase implements TransferManifestP
|
||||
String message = (node != null) ? "Error while processing incoming node " + node.getNodeRef() :
|
||||
"Error processing commit";
|
||||
|
||||
monitor.log(transferId, message, ex);
|
||||
monitor.logException(transferId, message, ex);
|
||||
//Any non-fatal transfer exception is logged and then skipped - the transfer continues
|
||||
//(albeit with a guaranteed rollback at the end).
|
||||
//A fatal transfer exception is rethrown and causes the transfer to end immediately.
|
||||
@@ -203,8 +204,24 @@ public abstract class AbstractManifestProcessorBase implements TransferManifestP
|
||||
}
|
||||
}
|
||||
|
||||
protected void logProgress(String message)
|
||||
protected void logComment(String message)
|
||||
{
|
||||
receiver.getProgressMonitor().log(transferId, message);
|
||||
receiver.getProgressMonitor().logComment(transferId, message);
|
||||
}
|
||||
protected void logCreated(NodeRef sourceNode, NodeRef destNode, NodeRef newParentNode, Path parentPath, boolean orphan)
|
||||
{
|
||||
receiver.getProgressMonitor().logCreated(transferId, sourceNode, destNode, newParentNode, parentPath, orphan);
|
||||
}
|
||||
protected void logDeleted(NodeRef sourceNode, NodeRef destNode, Path parentPath)
|
||||
{
|
||||
receiver.getProgressMonitor().logDeleted(transferId, sourceNode, destNode, parentPath);
|
||||
}
|
||||
protected void logUpdated(NodeRef sourceNode, NodeRef destNode, Path newPath)
|
||||
{
|
||||
receiver.getProgressMonitor().logUpdated(transferId, sourceNode, destNode, newPath);
|
||||
}
|
||||
protected void logMoved(NodeRef sourceNode, NodeRef destNode, Path oldPath, NodeRef newParent, Path newPath)
|
||||
{
|
||||
receiver.getProgressMonitor().logMoved(transferId, sourceNode, destNode, oldPath, newParent, newPath);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user