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:
Mark Rogers
2010-09-02 09:42:23 +00:00
parent b17f6bd923
commit 721fb7eff1
15 changed files with 858 additions and 104 deletions

View File

@@ -21,6 +21,8 @@ package org.alfresco.repo.transfer;
import java.io.InputStream;
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;
@@ -36,20 +38,60 @@ import org.alfresco.service.cmr.transfer.TransferProgress;
public interface TransferProgressMonitor
{
/**
* log a message
* log an ad-hoc message
* @param transferId
* @param obj
* @throws TransferException
*/
void log(String transferId, Object obj) throws TransferException;
void logComment(String transferId, Object obj) throws TransferException;
/**
* log a message and an exception
* log an ad-hoc message and an exception
* @param transferId
* @param obj
* @param ex
* @throws TransferException
*/
void log(String transferId, Object obj, Throwable ex) throws TransferException;
void logException(String transferId, Object obj, Throwable ex) throws TransferException;
/**
* Log the creation of a new node
* @param transferId
* @param sourceNode
* @param destNode
* @param newPath
* @param orphan
*/
void logCreated(String transferId, NodeRef sourceNode, NodeRef destNode, NodeRef newParent, Path newPath, boolean orphan);
/**
* Log the creation of a new node
* @param transferId
* @param sourceNode
* @param destNode
* @param parentPath
* @param orphan
*/
void logUpdated(String transferId, NodeRef sourceNode, NodeRef destNode, Path parentPath);
/**
* Log the deletion of a node
* @param transferId
* @param sourceNode
* @param destNode
* @param parentPath
* @param orphan
*/
void logDeleted(String transferId, NodeRef sourceNode, NodeRef destNode, Path parentPath);
/**
* After the transfer has completed this method reads the log.
* @param transferId
* @return the log
*/
void logMoved(String transferId, NodeRef sourceNodeRef,
NodeRef destNodeRef, Path oldPath, NodeRef newParent, Path newPath);
/**
* update the progress of the specified transfer
@@ -84,10 +126,7 @@ public interface TransferProgressMonitor
*/
TransferProgress getProgress(String transferId) throws TransferException;
/**
* After the transfer has completed this method reads the log.
* @param transferId
* @return the log
*/
InputStream getLogInputStream(String transferId) throws TransferException;
}