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
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.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.LongTaskStatus(Consumer<LongTaskStatus> spec) Constructs a validated instance ofLongTaskStatus. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for additionalDetails.additionalDetails(AdditionalDetails additionalDetails) Fluent setter for additionalDetails.ari()Fluent getter for ari.Fluent setter for ari.Fluent getter for elapsedTime.elapsedTime(Long elapsedTime) Fluent setter for elapsedTime.booleanerrors()Fluent getter for errors.Fluent setter for errors.finished()Fluent getter for finished.Fluent setter for finished.Gets the value of additionalDetails.getAri()Gets the value of ari.Gets the value of elapsedTime.Gets the value of errors.Gets the value of finished.getId()Gets the value of id.Gets the value of messages.getName()Gets the value of name.Gets the value of percentageComplete.Gets the value of status.Gets the value of successful.inthashCode()id()Fluent getter for id.Fluent setter for id.messages()Fluent getter for messages.Fluent setter for messages.name()Fluent getter for name.Fluent setter for name.Fluent getter for percentageComplete.percentageComplete(Integer percentageComplete) Fluent setter for percentageComplete.voidsetAdditionalDetails(AdditionalDetails additionalDetails) Sets the value of additionalDetails.voidSets the value of ari.voidsetElapsedTime(Long elapsedTime) Sets the value of elapsedTime.voidSets the value of errors.voidsetFinished(Boolean finished) Sets the value of finished.voidSets the value of id.voidsetMessages(List<Map<String, Object>> messages) Sets the value of messages.voidSets the value of name.voidsetPercentageComplete(Integer percentageComplete) Sets the value of percentageComplete.voidSets the value of status.voidsetSuccessful(Boolean successful) Sets the value of successful.status()Fluent getter for status.Fluent setter for status.Fluent getter for successful.successful(Boolean successful) Fluent setter for 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 protected LongTaskStatus()Protected no-args constructor for use by serialization frameworks. -
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
-
-
Method Details
-
ari
-
ari
Fluent setter for ari.the ARI for the long task, based on its ID
- Parameters:
ari- ari- Returns:
- this
-
getAri
Gets the value of ari.the ARI for the long task, based on its ID
- Returns:
- ari
-
setAri
Sets the value of ari.the ARI for the long task, based on its ID
- Parameters:
ari- ari
-
id
-
id
-
getId
-
setId
-
name
-
name
-
getName
-
setName
-
elapsedTime
-
elapsedTime
Fluent setter for elapsedTime.- Parameters:
elapsedTime- elapsedTime- Returns:
- this
-
getElapsedTime
-
setElapsedTime
Sets the value of elapsedTime.- Parameters:
elapsedTime- elapsedTime
-
percentageComplete
Fluent getter for percentageComplete.- Returns:
- percentageComplete
-
percentageComplete
Fluent setter for percentageComplete.- Parameters:
percentageComplete- percentageComplete- Returns:
- this
-
getPercentageComplete
Gets the value of percentageComplete.- Returns:
- percentageComplete
-
setPercentageComplete
Sets the value of percentageComplete.- Parameters:
percentageComplete- percentageComplete
-
successful
-
successful
Fluent setter for successful.- Parameters:
successful- successful- Returns:
- this
-
getSuccessful
-
setSuccessful
Sets the value of successful.- Parameters:
successful- successful
-
finished
-
finished
Fluent setter for finished.- Parameters:
finished- finished- Returns:
- this
-
getFinished
-
setFinished
Sets the value of finished.- Parameters:
finished- finished
-
messages
-
messages
Fluent setter for messages.- Parameters:
messages- messages- Returns:
- this
-
getMessages
-
setMessages
-
status
-
status
Fluent setter for status.- Parameters:
status- status- Returns:
- this
-
getStatus
-
setStatus
-
errors
-
errors
Fluent setter for errors.- Parameters:
errors- errors- Returns:
- this
-
getErrors
-
setErrors
-
additionalDetails
Fluent getter for additionalDetails.- Returns:
- additionalDetails
-
additionalDetails
Fluent setter for additionalDetails.- Parameters:
additionalDetails- additionalDetails- Returns:
- this
-
getAdditionalDetails
Gets the value of additionalDetails.- Returns:
- additionalDetails
-
setAdditionalDetails
Sets the value of additionalDetails.- Parameters:
additionalDetails- additionalDetails
-
equals
-
hashCode
-
toString
-