LongTaskStatus class
Current status of a long running task
Status keys:
ERROR_UNKNOWN
- Generic errorERROR_LOCK_FAILED
- Could not get the lock on destination spaceERROR_RELINK
- Error when relink pages/attachmentsERROR_COPY_PAGE
- Error while copying 1 pageWARN_RENAME_PAGE
- Warning page is rename during copyWARN_IGNORE_COPY_PERMISSION
- Warning could not copy permissionWARN_IGNORE_COPY_ATTACHMENT
- Warning could not copy attachmentWARN_IGNORE_DELETE_PAGE
- Warning ignoring delete of a non agreed on pageSTATUS_COPIED_PAGES
- Message total pages are copiedSTATUS_COPYING_PAGES
- Message copy pagesSTATUS_RELINK_PAGES
- Message relink pages/attachmentsSTATUS_DELETING_PAGES
- Message delete pagesSTATUS_DELETED_PAGES
- Message total pages are deletedSTATUS_MOVING_PAGES
- Message move pagesWARN_IGNORE_VIEW_RESTRICTED
- Permission changed - view restrictedWARN_IGNORE_EDIT_RESTRICTED
- Permission changed - edit restrictedINITIALIZING_TASK
- Message when initializing taskUNKNOWN_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