Class ApprovalContextUtil
java.lang.Object
com.evolveum.midpoint.schema.util.cases.ApprovalContextUtil
TODO clean up these formatting methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendNumber(Integer stageNumber, Integer stageCount, StringBuilder sb) static @NotNull WorkItemEventCauseInformationTypestatic WorkItemDelegationEventTypecreateDelegationEvent(WorkItemEscalationLevelType newEscalation, List<ObjectReferenceType> assigneesBefore, List<ObjectReferenceType> delegatedTo, @NotNull WorkItemDelegationMethodType method, WorkItemEventCauseInformationType causeInformation, PrismContext prismContext) static @NotNull WorkItemEscalationLevelTypecreateEscalationLevelInformation(DelegateWorkItemActionType delegateAction) static List<EvaluatedPolicyRuleType>getAllRules(SchemaAttachedPolicyRulesType policyRules) static ApprovalContextTypestatic ApprovalContextTypegetApprovalContext(CaseWorkItemType workItem) static @NotNull ApprovalContextTypegetApprovalContextRequired(@NotNull CaseType currentCase) static ApprovalSchemaTypestatic @NotNull List<SchemaAttachedPolicyRuleType>getAttachedPolicyRules(ApprovalContextType actx, int order) static StringgetBriefDiagInfo(CaseType aCase) static OperationBusinessContextTypegetBusinessContext(CaseType aCase) static CaseTypestatic @Nullable StringgetCompleteStageInfo(CaseType aCase) static ApprovalStageDefinitionTypestatic @NotNull ApprovalStageDefinitionTypestatic @Nullable StringgetEscalationLevelInfo(AbstractWorkItemType workItem) static Stringstatic Integerstatic <T extends CaseEventType>
List<T>static <T extends CaseEventType>
List<T>getEventsForCurrentStage(@NotNull CaseType aCase, @NotNull Class<T> clazz) static ObjectReferenceTypegetObjectRef(PrismContainerValue<CaseWorkItemType> workItem) static ObjectReferenceTypegetObjectRef(CaseWorkItemType workItem) static @Nullable WorkItemOperationKindTypestatic Stringstatic Stringstatic StringgetRequesterComment(CaseType aCase) static ObjectReferenceTypegetRequesterRef(PrismContainerValue<CaseWorkItemType> workItem) static ObjectReferenceTypegetRequesterRef(CaseWorkItemType workItem) static @NotNull List<EvaluatedPolicyRuleType>getRulesForStage(ApprovalContextType actx, Integer stageNumber) static List<List<EvaluatedPolicyRuleType>>static Integerstatic ApprovalStageDefinitionTypegetStageDefinition(ApprovalContextType actx, int stageNumber) static Stringstatic StringgetStageDisplayName(CaseType aCase) static StringgetStageDisplayName(CaseWorkItemType workItem) static @Nullable StringgetStageInfo(CaseType aCase) static @Nullable StringgetStageInfo(CaseWorkItemType workItem) static StringgetStageInfo(Integer stageNumber, Integer stageCount, String stageName, String stageDisplayName) static StringgetStageInfoTODO(Integer stageNumber) static StringgetStageName(CaseType aCase) static intgetStageNumberRequired(@NotNull CaseType aCase) static XMLGregorianCalendargetStartTimestamp(PrismContainerValue<CaseWorkItemType> workItem) static XMLGregorianCalendargetStartTimestamp(CaseWorkItemType workItem) static Stringstatic ObjectReferenceTypegetTargetRef(PrismContainerValue<CaseWorkItemType> workItem) static ObjectReferenceTypegetTargetRef(CaseWorkItemType workItem) static <T extends WorkItemEventType>
List<T>getWorkItemEvents(@NotNull CaseType aCase, long workItemId, Class<T> clazz) static StringgetWorkItemStageDisplayName(CaseWorkItemType workItem) static @Nullable StringgetWorkItemStageInfo(CaseWorkItemType workItem) static StringgetWorkItemStageName(CaseWorkItemType workItem) static booleanstatic booleanstatic booleanisInStageBeforeLastOne(CaseType aCase) static voidnormalizeStages(ApprovalSchemaType schema) static List<ApprovalStageDefinitionType>sortAndCheckStages(ApprovalSchemaType schema)
-
Constructor Details
-
ApprovalContextUtil
public ApprovalContextUtil()
-
-
Method Details
-
getStageInfo
-
getWorkItemStageInfo
-
getStageInfo
-
getWorkItemStageName
-
getWorkItemStageDisplayName
-
getStageName
-
getStageDisplayName
-
getApprovalSchema
-
getStageCount
-
getStageDisplayName
-
getStageInfo
-
getEscalationLevelInfo
-
getEscalationLevelInfo
-
isClosed
-
isClosed
-
getCompleteStageInfo
-
appendNumber
-
getAttachedPolicyRules
@NotNull public static @NotNull List<SchemaAttachedPolicyRuleType> getAttachedPolicyRules(ApprovalContextType actx, int order) -
getCurrentStageDefinitionRequired
@NotNull public static @NotNull ApprovalStageDefinitionType getCurrentStageDefinitionRequired(CaseType aCase) -
getCurrentStageDefinition
-
getStageNumberRequired
-
getStageDefinition
public static ApprovalStageDefinitionType getStageDefinition(ApprovalContextType actx, int stageNumber) -
getEventsForCurrentStage
public static <T extends CaseEventType> List<T> getEventsForCurrentStage(@NotNull @NotNull CaseType aCase, @NotNull @NotNull Class<T> clazz) -
getEvents
public static <T extends CaseEventType> List<T> getEvents(@NotNull @NotNull CaseType aCase, @NotNull @NotNull Class<T> clazz) -
getWorkItemEvents
public static <T extends WorkItemEventType> List<T> getWorkItemEvents(@NotNull @NotNull CaseType aCase, long workItemId, Class<T> clazz) -
getBriefDiagInfo
-
getStageDiagName
-
normalizeStages
-
sortAndCheckStages
-
getBusinessContext
-
getStageInfoTODO
-
getApprovalContext
-
getCase
-
getApprovalContext
-
getObjectRef
-
getObjectRef
-
getTargetRef
-
getTargetRef
-
getRequesterRef
-
getRequesterRef
-
getStartTimestamp
-
getStartTimestamp
public static XMLGregorianCalendar getStartTimestamp(PrismContainerValue<CaseWorkItemType> workItem) -
getEscalationLevelNumber
-
createCause
@NotNull public static @NotNull WorkItemEventCauseInformationType createCause(AbstractWorkItemActionType action) -
getOperationKind
@Nullable public static @Nullable WorkItemOperationKindType getOperationKind(AbstractWorkItemActionType action) -
createEscalationLevelInformation
@NotNull public static @NotNull WorkItemEscalationLevelType createEscalationLevelInformation(DelegateWorkItemActionType delegateAction) -
createDelegationEvent
public static WorkItemDelegationEventType createDelegationEvent(WorkItemEscalationLevelType newEscalation, List<ObjectReferenceType> assigneesBefore, List<ObjectReferenceType> delegatedTo, @NotNull @NotNull WorkItemDelegationMethodType method, WorkItemEventCauseInformationType causeInformation, PrismContext prismContext) -
isInStageBeforeLastOne
-
getProcessName
-
getTargetName
-
getOutcome
-
getAllRules
-
getRulesPerStage
-
getRulesForStage
@NotNull public static @NotNull List<EvaluatedPolicyRuleType> getRulesForStage(ApprovalContextType actx, Integer stageNumber) -
getApprovalContextRequired
@NotNull public static @NotNull ApprovalContextType getApprovalContextRequired(@NotNull @NotNull CaseType currentCase) -
getRequesterComment
-