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 Deprecated 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)
Deprecated.static boolean
isExecute(Task task)
Deprecated.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
@Deprecated public static boolean isDryRun(Task task)
Deprecated.
-
isExecute
@Deprecated public static boolean isExecute(Task task)
Deprecated.
-
findExtensionItemValueInThisOrParent
public static boolean findExtensionItemValueInThisOrParent(Task task, QName path, boolean defaultValue) throws SchemaException
- Throws:
SchemaException
-
-