org.alfresco.repo.transfer
Class RepoTransferProgressMonitorImpl

java.lang.Object
  extended by org.alfresco.repo.transfer.RepoTransferProgressMonitorImpl
All Implemented Interfaces:
TransferProgressMonitor

public class RepoTransferProgressMonitorImpl
extends java.lang.Object
implements TransferProgressMonitor


Constructor Summary
RepoTransferProgressMonitorImpl()
           
 
Method Summary
 java.io.InputStream getLogInputStream(java.lang.String transferId)
           
 TransferProgress getProgress(java.lang.String transferId)
          Read the progress of the
 void logComment(java.lang.String transferId, java.lang.Object obj)
          log an ad-hoc message
 void logCreated(java.lang.String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, org.alfresco.service.cmr.repository.Path parentPath, boolean orphan)
          Log the creation of a new node
 void logDeleted(java.lang.String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, org.alfresco.service.cmr.repository.Path oldPath)
          Log the deletion of a node
 void logException(java.lang.String transferId, java.lang.Object obj, java.lang.Throwable ex)
          log an ad-hoc message and an exception
 void logMoved(java.lang.String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, org.alfresco.service.cmr.repository.Path oldPath, org.alfresco.service.cmr.repository.NodeRef newParentNodeRef, org.alfresco.service.cmr.repository.Path newPath)
          After the transfer has completed this method reads the log.
 void logUpdated(java.lang.String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, org.alfresco.service.cmr.repository.Path path)
          Log the creation of a new node
 void setContentService(ContentService contentService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setTransactionService(TransactionService transactionService)
           
 void updateProgress(java.lang.String transferId, int currPos)
          update the progress of the specified transfer
 void updateProgress(java.lang.String transferId, int currPos, int endPos)
          update the progress of the specified transfer and possibly change the end position.
 void updateStatus(java.lang.String transferId, TransferProgress.Status status)
          update the startus of the transfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepoTransferProgressMonitorImpl

public RepoTransferProgressMonitorImpl()
Method Detail

getProgress

public TransferProgress getProgress(java.lang.String transferId)
Description copied from interface: TransferProgressMonitor
Read the progress of the

Specified by:
getProgress in interface TransferProgressMonitor
Returns:
the progress of the transfer

logComment

public void logComment(java.lang.String transferId,
                       java.lang.Object obj)
Description copied from interface: TransferProgressMonitor
log an ad-hoc message

Specified by:
logComment in interface TransferProgressMonitor

logException

public void logException(java.lang.String transferId,
                         java.lang.Object obj,
                         java.lang.Throwable ex)
Description copied from interface: TransferProgressMonitor
log an ad-hoc message and an exception

Specified by:
logException in interface TransferProgressMonitor

logCreated

public void logCreated(java.lang.String transferId,
                       org.alfresco.service.cmr.repository.NodeRef sourceNode,
                       org.alfresco.service.cmr.repository.NodeRef destNode,
                       org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
                       org.alfresco.service.cmr.repository.Path parentPath,
                       boolean orphan)
Description copied from interface: TransferProgressMonitor
Log the creation of a new node

Specified by:
logCreated in interface TransferProgressMonitor

logUpdated

public void logUpdated(java.lang.String transferId,
                       org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                       org.alfresco.service.cmr.repository.NodeRef destNodeRef,
                       org.alfresco.service.cmr.repository.Path path)
Description copied from interface: TransferProgressMonitor
Log the creation of a new node

Specified by:
logUpdated in interface TransferProgressMonitor

logMoved

public void logMoved(java.lang.String transferId,
                     org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                     org.alfresco.service.cmr.repository.NodeRef destNodeRef,
                     org.alfresco.service.cmr.repository.Path oldPath,
                     org.alfresco.service.cmr.repository.NodeRef newParentNodeRef,
                     org.alfresco.service.cmr.repository.Path newPath)
Description copied from interface: TransferProgressMonitor
After the transfer has completed this method reads the log.

Specified by:
logMoved in interface TransferProgressMonitor

logDeleted

public void logDeleted(java.lang.String transferId,
                       org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                       org.alfresco.service.cmr.repository.NodeRef destNodeRef,
                       org.alfresco.service.cmr.repository.Path oldPath)
Description copied from interface: TransferProgressMonitor
Log the deletion of a node

Specified by:
logDeleted in interface TransferProgressMonitor

updateProgress

public void updateProgress(java.lang.String transferId,
                           int currPos)
Description copied from interface: TransferProgressMonitor
update the progress of the specified transfer

Specified by:
updateProgress in interface TransferProgressMonitor

updateProgress

public void updateProgress(java.lang.String transferId,
                           int currPos,
                           int endPos)
Description copied from interface: TransferProgressMonitor
update the progress of the specified transfer and possibly change the end position.

Specified by:
updateProgress in interface TransferProgressMonitor

updateStatus

public void updateStatus(java.lang.String transferId,
                         TransferProgress.Status status)
Description copied from interface: TransferProgressMonitor
update the startus of the transfer

Specified by:
updateStatus in interface TransferProgressMonitor

getLogInputStream

public java.io.InputStream getLogInputStream(java.lang.String transferId)
                                      throws TransferException
Specified by:
getLogInputStream in interface TransferProgressMonitor
Throws:
TransferException

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Parameters:
nodeService - the nodeService to set

setContentService

public void setContentService(ContentService contentService)
Parameters:
contentService - the contentService to set

setTransactionService

public void setTransactionService(TransactionService transactionService)
Parameters:
transactionService - the transactionService to set


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.