LongTaskStatus class

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

Constructors

LongTaskStatus({String? ari, required String id, required LongTaskStatusName name, required int elapsedTime, required int percentageComplete, required bool successful, required bool finished, required List<Message> messages, String? status, List<Message>? errors, LongTaskStatusAdditionalDetails? additionalDetails})
LongTaskStatus.fromJson(Map<String, Object?> json)
factory

Properties

additionalDetails LongTaskStatusAdditionalDetails?
final
ari String?
the ARI for the long task, based on its ID
final
elapsedTime int
final
errors List<Message>
final
finished bool
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
messages List<Message>
final
name LongTaskStatusName
final
percentageComplete int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
final
successful bool
final

Methods

copyWith({String? ari, String? id, LongTaskStatusName? name, int? elapsedTime, int? percentageComplete, bool? successful, bool? finished, List<Message>? messages, String? status, List<Message>? errors, LongTaskStatusAdditionalDetails? additionalDetails}) LongTaskStatus
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited