Class TaskProgressUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.task.TaskProgressUtil
-
public class TaskProgressUtil extends Object
Utility methods related to task progress.
-
-
Constructor Summary
Constructors Constructor Description TaskProgressUtil()
-
Method Summary
-
-
-
Method Detail
-
getProgressForOutcome
public static int getProgressForOutcome(StructuredTaskProgressType info, ItemProcessingOutcomeType outcome, boolean open)
-
getProgressForOutcome
public static int getProgressForOutcome(TaskPartProgressType part, ItemProcessingOutcomeType outcome, boolean open)
-
getProgressDescription
public static String getProgressDescription(TaskType task, List<Object> localizationObject)
-
getPlainTaskProgressDescription
public static String getPlainTaskProgressDescription(TaskType taskType)
-
getTotalProgress
public static int getTotalProgress(TaskPartProgressType progress)
-
getTotalProgressOpen
public static int getTotalProgressOpen(TaskPartProgressType progress)
-
getTotalProgressClosed
public static int getTotalProgressClosed(StructuredTaskProgressType progress)
-
getTotalProgressOpen
public static int getTotalProgressOpen(StructuredTaskProgressType progress)
-
getForCurrentPart
public static TaskPartProgressType getForCurrentPart(StructuredTaskProgressType progress)
-
getForPart
public static TaskPartProgressType getForPart(StructuredTaskProgressType progress, String partUri)
-
getTotalProgressForCurrentPart
public static int getTotalProgressForCurrentPart(StructuredTaskProgressType progress)
-
getTotalProgressForPart
public static int getTotalProgressForPart(StructuredTaskProgressType progress, String partUri)
-
getTotalProgress
public static long getTotalProgress(StructuredTaskProgressType progress)
Returns a value suitable for storing in task.progress property.
-
getCurrentPartUri
public static String getCurrentPartUri(StructuredTaskProgressType structuredTaskProgress)
-
getStructuredProgressFromTree
@Experimental public static StructuredTaskProgressType getStructuredProgressFromTree(TaskType task)
-
-