Class TaskTreeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.task.TaskTreeUtil
Utilities related to task trees.
 They include working with subtasks.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddSubtask(TaskType parent, TaskType child) Adds a subtask to parent children list.static booleanallSubtasksAreResolved(TaskType parent) static TaskTypestatic TaskTypefindChildIfResolved(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- 
TaskTreeUtilpublic TaskTreeUtil()
 
- 
- 
Method Details- 
getAllTasksStreamReturns 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.
- 
getResolvedSubtasksGet resolved direct subtasks from a task. Expects that the subtasks are resolved into full objects.
- 
getResolvedSubtasks
- 
addSubtaskAdds a subtask to parent children list.
- 
findChild
- 
findChildIfResolved
- 
allSubtasksAreResolved
 
-