Class TaskTreeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.task.TaskTreeUtil
Utilities related to task trees.
They include working with subtasks.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addSubtask
(TaskType parent, TaskType child) Adds a subtask to parent children list.static boolean
allSubtasksAreResolved
(TaskType parent) static TaskType
static TaskType
findChildIfResolved
(TaskType parent, String childOid) getAllTasksStream
(TaskType root) Returns a stream of the task and all of its subtasks.getResolvedSubtasks
(TaskType parent) Get resolved direct subtasks from a task.getResolvedSubtasks
(TaskType parent, TaskResolver taskResolver)
-
Constructor Details
-
TaskTreeUtil
public TaskTreeUtil()
-
-
Method Details
-
getAllTasksStream
Returns a stream of the task and all of its subtasks. Expects that the subtasks are resolved into full objects. I.e. does not do task ID resolution itself: if a subtask is not already resolved, throws an exception. -
getResolvedSubtasks
Get resolved direct subtasks from a task. Expects that the subtasks are resolved into full objects. -
getResolvedSubtasks
-
addSubtask
Adds a subtask to parent children list. -
findChild
-
findChildIfResolved
-
allSubtasksAreResolved
-