Class ApprovalUtils
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.cases.ApprovalUtils
-
public class ApprovalUtils extends Object
Utility methods related to approval cases.
-
-
Constructor Summary
Constructors Constructor Description ApprovalUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Boolean
approvalBooleanValue(AbstractWorkItemOutputType result)
static Boolean
approvalBooleanValue(String uri)
static Boolean
approvalBooleanValueFromUri(String uri)
static Boolean
approvalBooleanValueNice(String decision)
static ApprovalLevelOutcomeType
approvalLevelOutcomeFromUri(String uri)
static AbstractWorkItemOutputType
createApproveOutput()
static WorkItemOutcomeType
fromUri(String uri)
static String
getAnswerNice(CaseType aCase)
static boolean
isApproved(AbstractWorkItemOutputType result)
static boolean
isApproved(String result)
static boolean
isApprovedFromUri(String uri)
static String
makeNiceFromUri(CaseType aCase, AbstractWorkItemOutputType output)
static String
makeNiceFromUri(String outcome)
static String
toUri(ApprovalLevelOutcomeType outcome)
static String
toUri(WorkItemOutcomeType workItemOutcomeType)
static String
toUri(Boolean approved)
-
-
-
Method Detail
-
approvalBooleanValue
public static Boolean approvalBooleanValue(AbstractWorkItemOutputType result)
-
isApproved
public static boolean isApproved(AbstractWorkItemOutputType result)
-
isApproved
public static boolean isApproved(String result)
-
toUri
public static String toUri(WorkItemOutcomeType workItemOutcomeType)
-
toUri
public static String toUri(ApprovalLevelOutcomeType outcome)
-
fromUri
public static WorkItemOutcomeType fromUri(String uri)
-
approvalLevelOutcomeFromUri
public static ApprovalLevelOutcomeType approvalLevelOutcomeFromUri(String uri)
-
makeNiceFromUri
public static String makeNiceFromUri(CaseType aCase, AbstractWorkItemOutputType output)
-
isApprovedFromUri
public static boolean isApprovedFromUri(String uri)
-
createApproveOutput
public static AbstractWorkItemOutputType createApproveOutput()
-
-