Package com.evolveum.midpoint.task.api
Class TaskUtil
- java.lang.Object
-
- com.evolveum.midpoint.task.api.TaskUtil
-
public class TaskUtil extends Object
- Author:
- mederly
-
-
Field Summary
Fields Modifier and Type Field Description static long
ALREADY_PASSED
static long
NOW
static long
RUNS_CONTINUALLY
-
Constructor Summary
Constructors Constructor Description TaskUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createScheduledToRunAgain(TaskType task, List<Object> localizationObject)
static Task
findByIdentifier(@NotNull String identifier, @NotNull Collection<Task> tasks)
static boolean
findExtensionItemValueInThisOrParent(Task task, QName path, boolean defaultValue)
static String
getProgressDescription(TaskType task, List<Object> localizationObject)
static Long
getScheduledToStartAgain(TaskType task)
static boolean
isDryRun(Task task)
The methods below should be in class like "TaskUtilForProvisioning".static List<String>
tasksToOids(List<Task> tasks)
-
-
-
Field Detail
-
RUNS_CONTINUALLY
public static final long RUNS_CONTINUALLY
- See Also:
- Constant Field Values
-
ALREADY_PASSED
public static final long ALREADY_PASSED
- See Also:
- Constant Field Values
-
NOW
public static final long NOW
- See Also:
- Constant Field Values
-
-
Method Detail
-
findByIdentifier
public static Task findByIdentifier(@NotNull @NotNull String identifier, @NotNull @NotNull Collection<Task> tasks)
-
isDryRun
public static boolean isDryRun(Task task) throws SchemaException
The methods below should be in class like "TaskUtilForProvisioning". For simplicity let's keep them here for now.- Throws:
SchemaException
-
findExtensionItemValueInThisOrParent
public static boolean findExtensionItemValueInThisOrParent(Task task, QName path, boolean defaultValue) throws SchemaException
- Throws:
SchemaException
-
createScheduledToRunAgain
public static String createScheduledToRunAgain(TaskType task, List<Object> localizationObject)
-
-