Class LongTaskStatus
Current status of a long running task Status keys: - `ERROR_UNKNOWN` - Generic error - `ERROR_LOCK_FAILED` - Could not get the lock on destination space - `ERROR_RELINK` - Error when relink pages/attachments - `ERROR_COPY_PAGE` - Error while copying 1 page - `WARN_RENAME_PAGE` - Warning page is rename during copy - `WARN_IGNORE_COPY_PERMISSION` - Warning could not copy permission - `WARN_IGNORE_COPY_ATTACHMENT` - Warning could not copy attachment - `WARN_IGNORE_DELETE_PAGE` - Warning ignoring delete of a non agreed on page - `STATUS_COPIED_PAGES` - Message total pages are copied - `STATUS_COPYING_PAGES` - Message copy pages - `STATUS_RELINK_PAGES` - Message relink pages/attachments - `STATUS_DELETING_PAGES` - Message delete pages - `STATUS_DELETED_PAGES` - Message total pages are deleted - `STATUS_MOVING_PAGES` - Message move pages - `WARN_IGNORE_VIEW_RESTRICTED` - Permission changed - view restricted - `WARN_IGNORE_EDIT_RESTRICTED` - Permission changed - edit restricted - `INITIALIZING_TASK` - Message when initializing task - `UNKNOWN_STATUS` - Message when status is unknown
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLongTaskStatus(String ari, String id, Name name, Long elapsedTime, Integer percentageComplete, Boolean successful, Boolean finished, List<Map<String, Object>> messages, String status, List<Map<String, Object>> errors, AdditionalDetails additionalDetails) Constructs a validated instance ofLongTaskStatus.LongTaskStatus(Consumer<LongTaskStatus> spec) Constructs a validated instance ofLongTaskStatus. -
Method Summary
Modifier and TypeMethodDescriptionadditionalDetails(AdditionalDetails additionalDetails) ari()the ARI for the long task, based on its IDthe ARI for the long task, based on its IDprotected booleanelapsedTime(Long elapsedTime) booleanerrors()finished()inthashCode()id()messages()name()percentageComplete(Integer percentageComplete) status()successful(Boolean successful) toString()
-
Field Details
-
ari
the ARI for the long task, based on its ID -
id
-
name
-
elapsedTime
-
percentageComplete
-
successful
-
finished
-
messages
-
status
-
errors
-
additionalDetails
-
-
Constructor Details
-
LongTaskStatus
Constructs a validated instance ofLongTaskStatus.- Parameters:
spec- the specification to process
-
LongTaskStatus
@Internal public LongTaskStatus(String ari, String id, Name name, Long elapsedTime, Integer percentageComplete, Boolean successful, Boolean finished, List<Map<String, Object>> messages, String status, List<Map<String, Object>> errors, AdditionalDetails additionalDetails) Constructs a validated instance ofLongTaskStatus.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
LongTaskStatus(Consumer)instead.- Parameters:
ari- the ARI for the long task, based on its IDid- idname- nameelapsedTime- elapsedTimepercentageComplete- percentageCompletesuccessful- successfulfinished- finishedmessages- messagesstatus- statuserrors- errorsadditionalDetails- additionalDetails
-
LongTaskStatus
protected LongTaskStatus()
-
-
Method Details
-
ari
the ARI for the long task, based on its ID -
id
-
name
-
elapsedTime
-
percentageComplete
-
successful
-
finished
-
messages
-
status
-
errors
-
additionalDetails
-
ari
the ARI for the long task, based on its ID- Returns:
this.
-
id
- Returns:
this.
-
name
- Returns:
this.
-
elapsedTime
- Returns:
this.
-
percentageComplete
- Returns:
this.
-
successful
- Returns:
this.
-
finished
- Returns:
this.
-
messages
- Returns:
this.
-
status
- Returns:
this.
-
errors
- Returns:
this.
-
additionalDetails
- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-