Class TaskTypeUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.TaskTypeUtil
-
public class TaskTypeUtil extends Object
- Author:
- mederly
-
-
Constructor Summary
Constructors Constructor Description TaskTypeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addSubtask(TaskType parent, TaskType child, PrismContext prismContext)
static TaskType
findChild(TaskType parent, String childOid)
static OperationStatsType
getAggregatedOperationStats(TaskType task, PrismContext prismContext)
static @NotNull Stream<TaskType>
getAllTasksStream(TaskType root)
Returns a stream of the task and all of its subtasks.static @NotNull TaskKindType
getKind(TaskType task)
static int
getObjectsProcessed(TaskType task)
static int
getObjectsProcessedFailures(TaskType task, PrismContext prismContext)
static List<TaskType>
getResolvedSubtasks(TaskType parent)
static boolean
isCoordinator(TaskType task)
static boolean
isPartitionedMaster(TaskType task)
static boolean
isWorkStateHolder(TaskType taskType)
-
-
-
Method Detail
-
getAllTasksStream
@NotNull public static @NotNull Stream<TaskType> getAllTasksStream(TaskType root)
Returns a stream of the task and all of its subtasks.
-
addSubtask
public static void addSubtask(TaskType parent, TaskType child, PrismContext prismContext)
-
isCoordinator
public static boolean isCoordinator(TaskType task)
-
isPartitionedMaster
public static boolean isPartitionedMaster(TaskType task)
-
getKind
@NotNull public static @NotNull TaskKindType getKind(TaskType task)
-
getObjectsProcessed
public static int getObjectsProcessed(TaskType task)
-
getObjectsProcessedFailures
public static int getObjectsProcessedFailures(TaskType task, PrismContext prismContext)
-
getAggregatedOperationStats
public static OperationStatsType getAggregatedOperationStats(TaskType task, PrismContext prismContext)
-
isWorkStateHolder
public static boolean isWorkStateHolder(TaskType taskType)
-
-