org.alfresco.repo.transfer
Class RepoTransferProgressMonitorImpl

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

public class RepoTransferProgressMonitorImpl
extends AbstractTransferProgressMonitor


Field Summary
 
Fields inherited from class org.alfresco.repo.transfer.AbstractTransferProgressMonitor
MSG_TRANSFER_CANCELLED, MSG_TRANSFER_NOT_FOUND
 
Constructor Summary
RepoTransferProgressMonitorImpl()
           
 
Method Summary
protected  java.io.Writer createUnderlyingLogWriter(java.lang.String transferId)
           
 java.io.InputStream getLogInputStream(java.lang.String transferId)
           
 TransferProgress getProgressInternal(java.lang.String transferId)
           
 void setContentService(ContentService contentService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void storeError(java.lang.String transferId, java.lang.Throwable ex)
           
 void updateProgressInternal(java.lang.String transferId, int currPos)
           
 void updateProgressInternal(java.lang.String transferId, int currPos, int endPos)
           
 void updateStatusInternal(java.lang.String transferId, TransferProgress.Status status)
           
 
Methods inherited from class org.alfresco.repo.transfer.AbstractTransferProgressMonitor
getProgress, logComment, logCreated, logDeleted, logException, logMoved, logUpdated, setTransactionService, updateProgress, updateProgress, updateStatus
 
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

getProgressInternal

public TransferProgress getProgressInternal(java.lang.String transferId)
Specified by:
getProgressInternal in class AbstractTransferProgressMonitor

storeError

public void storeError(java.lang.String transferId,
                       java.lang.Throwable ex)
Specified by:
storeError in class AbstractTransferProgressMonitor

updateProgressInternal

public void updateProgressInternal(java.lang.String transferId,
                                   int currPos)
Specified by:
updateProgressInternal in class AbstractTransferProgressMonitor

updateProgressInternal

public void updateProgressInternal(java.lang.String transferId,
                                   int currPos,
                                   int endPos)
Specified by:
updateProgressInternal in class AbstractTransferProgressMonitor

updateStatusInternal

public void updateStatusInternal(java.lang.String transferId,
                                 TransferProgress.Status status)
Specified by:
updateStatusInternal in class AbstractTransferProgressMonitor

getLogInputStream

public java.io.InputStream getLogInputStream(java.lang.String transferId)
                                      throws TransferException
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

createUnderlyingLogWriter

protected java.io.Writer createUnderlyingLogWriter(java.lang.String transferId)
Specified by:
createUnderlyingLogWriter in class AbstractTransferProgressMonitor


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