Throws an error if the TaskContentService didn't have the Task object set yet.
the Task object held by TaskContentService.
the Task object held by TaskContentService or undefined if the Service currently holds no Task.
stringId of the Task we would like to get information about. If no value is provided, the state of the task held in the TaskContentService will be returned.
whether the task is currently loading, or undefined if the queried task is
not held within the injected TaskContentService.
true if a Task instance is set, false otherwise
Checks whether the current state of the TaskContentService and optionally if the SelectedCaseService, is still relevant to the task that was requested.
This method is useful if you use UnlimitedTaskContentService, or a similar implementation. It is possible for the currently "selected" task to change in-between a backend request was sent and the response was received. In that case the response is no longer relevant and should be discarded, otherwise an illegal task state could be achieved on frontend.
the stringId of the requested task
true if the requested task is still relevant to the state of the frontend. Returns false otherwise.
stringId of the Task we would like to get information about. If no value is provided, the state of the task held in the TaskContentService will be returned.
whether the task is currently updating it's data fields, or undefined if the queried task is
not held within the injected TaskContentService.
Changes the state of the loading indicator to true,
if the task held within the injected TaskContentService has the Id that is provided as argument.
This method does nothing otherwise.
stringId of the Task who's loading state we want to change
Changes the state of the updating indicator to true,
if the task held within the injected TaskContentService has the Id that is provided as argument.
This method does nothing otherwise.
stringId of the Task who's loading state we want to change
Changes the state of the loading indicator to false,
if the task held within the injected TaskContentService has the Id that is provided as argument.
This method does nothing otherwise.
stringId of the Task who's loading state we want to change
Changes the state of the updating indicator to false,
if the task held within the injected TaskContentService has the Id that is provided as argument.
This method does nothing otherwise.
stringId of the Task who's loading state we want to change
Generated using TypeDoc
Holds information about the state of backend requests regarding a single Task instance held within the TaskContentService.
This Service is used by many other Services that handle the necessary logic for working with a single Task on frontend.