Package com.evolveum.midpoint.task.api
Class TaskUtil
- java.lang.Object
-
- com.evolveum.midpoint.task.api.TaskUtil
-
public class TaskUtil extends Object
Utility methods related to theTask
objects. The ones that refer only to `TaskType` objects are located in the schema module, e.g. inTaskTypeUtil
class.
-
-
Constructor Summary
Constructors Constructor Description TaskUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Task
findByIdentifier(@NotNull String identifier, @NotNull Collection<Task> tasks)
static boolean
findExtensionItemValueInThisOrParent(Task task, QName path, boolean defaultValue)
static @NotNull ExecutionModeType
getExecutionMode(Task task)
static List<? extends Task>
getLeafTasks(List<? extends Task> allSubtasksInTree)
static boolean
isDryRun(Task task)
static boolean
isExecute(Task task)
static boolean
isPreview(Task task)
static List<String>
tasksToOids(List<? extends Task> tasks)
-
-
-
Method Detail
-
findByIdentifier
public static Task findByIdentifier(@NotNull @NotNull String identifier, @NotNull @NotNull Collection<Task> tasks)
-
getExecutionMode
@NotNull public static @NotNull ExecutionModeType getExecutionMode(Task task)
-
isDryRun
public static boolean isDryRun(Task task)
-
isPreview
public static boolean isPreview(Task task)
-
isExecute
public static boolean isExecute(Task task)
-
findExtensionItemValueInThisOrParent
public static boolean findExtensionItemValueInThisOrParent(Task task, QName path, boolean defaultValue) throws SchemaException
- Throws:
SchemaException
-
-