public interface TransferProgressMonitor
It contains a status, current position, end position, and a log. It can also store an exception.
Modifier and Type | Method and Description |
---|---|
InputStream |
getLogInputStream(String transferId) |
TransferProgress |
getProgress(String transferId)
Read the progress of the
|
void |
logComment(String transferId,
Object obj)
log an ad-hoc message
|
void |
logCreated(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef destNode,
org.alfresco.service.cmr.repository.NodeRef newParent,
String newPath,
boolean orphan)
Log the creation of a new node
|
void |
logDeleted(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef destNode,
String path)
Log the deletion of a node
|
void |
logException(String transferId,
Object obj,
Throwable ex)
log an ad-hoc message and an exception
|
void |
logMoved(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef destNodeRef,
String oldPath,
org.alfresco.service.cmr.repository.NodeRef newParent,
String newPath)
After the transfer has completed this method reads the log.
|
void |
logUpdated(String transferId,
org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef destNode,
String path)
Log the creation of a new node
|
void |
updateProgress(String transferId,
int currPos)
update the progress of the specified transfer
|
void |
updateProgress(String transferId,
int currPos,
int endPos)
update the progress of the specified transfer and possibly change the end position.
|
void |
updateStatus(String transferId,
TransferProgress.Status status)
update the startus of the transfer
|
void logComment(String transferId, Object obj) throws TransferException
transferId
- Stringobj
- ObjectTransferException
void logException(String transferId, Object obj, Throwable ex) throws TransferException
transferId
- Stringobj
- Objectex
- ThrowableTransferException
void logCreated(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, org.alfresco.service.cmr.repository.NodeRef newParent, String newPath, boolean orphan)
transferId
- StringsourceNode
- NodeRefdestNode
- NodeRefnewPath
- Stringorphan
- booleanvoid logUpdated(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, String path)
transferId
- StringsourceNode
- NodeRefdestNode
- NodeRefpath
- The path of the updated nodevoid logDeleted(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNode, org.alfresco.service.cmr.repository.NodeRef destNode, String path)
transferId
- StringsourceNode
- NodeRefdestNode
- NodeRefpath
- The path of the deleted nodevoid logMoved(String transferId, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destNodeRef, String oldPath, org.alfresco.service.cmr.repository.NodeRef newParent, String newPath)
transferId
- StringsourceNodeRef
- NodeRefdestNodeRef
- NodeRefoldPath
- StringnewParent
- NodeRefnewPath
- Stringvoid updateProgress(String transferId, int currPos) throws TransferException
transferId
- StringcurrPos
- intTransferException
void updateProgress(String transferId, int currPos, int endPos) throws TransferException
transferId
- StringcurrPos
- intendPos
- intTransferException
void updateStatus(String transferId, TransferProgress.Status status) throws TransferException
transferId
- Stringstatus
- TransferProgress.StatusTransferException
TransferProgress getProgress(String transferId) throws TransferException
transferId
- StringTransferException
InputStream getLogInputStream(String transferId) throws TransferException
TransferException
Copyright © 2005–2017 Alfresco Software. All rights reserved.