Class TransferProgress
java.lang.Object
org.alfresco.service.cmr.transfer.TransferProgress
- Author:
- brian
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetError()static Set<TransferProgress.Status>booleanvoidsetCurrentPosition(int currentPosition) voidsetEndPosition(int endPosition) voidvoidsetStatus(TransferProgress.Status status) toString()
-
Constructor Details
-
TransferProgress
public TransferProgress()
-
-
Method Details
-
getTerminalStatuses
- Returns:
- The statuses that mark the end of the transfer. Once a transfer reaches one of these statuses it can never move into a different status.
-
isFinished
public boolean isFinished()- Returns:
- true if the current status is one of the terminal statuses.
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status- the status to set
-
getCurrentPosition
public int getCurrentPosition()- Returns:
- the currentPosition
-
setCurrentPosition
public void setCurrentPosition(int currentPosition) - Parameters:
currentPosition- the currentPosition to set
-
getEndPosition
public int getEndPosition()- Returns:
- the endPosition
-
setEndPosition
public void setEndPosition(int endPosition) - Parameters:
endPosition- the endPosition to set
-
getError
- Returns:
- the error
-
setError
- Parameters:
error- the error to set
-
toString
-