Class OperationResultUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.OperationResultUtil
-
public class OperationResultUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description OperationResultUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationResultStatus
aggregateFinishedResults(@NotNull Collection<OperationResultStatus> statuses)
Aggregates results, taking into accounts only "finished" ones, i.e.static boolean
isError(OperationResultStatusType status)
static boolean
isSuccessful(OperationResultStatusType result)
static OperationResultType
shallowClone(OperationResultType result, boolean subresults, boolean traces, boolean log)
-
-
-
Method Detail
-
shallowClone
public static OperationResultType shallowClone(OperationResultType result, boolean subresults, boolean traces, boolean log)
-
isSuccessful
public static boolean isSuccessful(OperationResultStatusType result)
-
isError
public static boolean isError(OperationResultStatusType status)
-
aggregateFinishedResults
public static OperationResultStatus aggregateFinishedResults(@NotNull @NotNull Collection<OperationResultStatus> statuses)
Aggregates results, taking into accounts only "finished" ones, i.e. no "not available", "in progress", nor "unknown". TODO reconsider this
-
-