Class PolicyRuleTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaccept(PolicyConstraintsType pc, com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil.ConstraintVisitor visitor, boolean deep, boolean alsoRoots, QName rootElementName, boolean ignoreRefs) Returns false if the process was stopped by the consumer.static Stringstatic Stringstatic <T extends PolicyActionType>
List<PolicyActionConfigItem<T>>filterActions(@NotNull List<? extends PolicyActionConfigItem<?>> actions, @NotNull Class<T> clazz) static @NotNull List<EvaluatedExclusionTriggerType>static booleanReturns true if this policy rule can be applied to an assignment.static booleanReturns true if this policy rule can be applied to an object as a whole.static booleanReturns true if this policy rule can be applied to a projection.static voidresolveConstraintReferences(List<PolicyRuleType> rules, Collection<? extends PolicyRuleType> otherRules) FIXME what about the origin of the constraints?static List<jakarta.xml.bind.JAXBElement<AbstractPolicyConstraintType>>toConstraintsList(PolicyConstraintsType pc, boolean deep, boolean ignoreRefs) static StringtoDiagShortcut(PolicyConstraintKindType constraintKind) static StringtoShortString(PolicyActionsType actions) static StringtoShortString(PolicyActionsType actions, List<PolicyActionConfigItem<?>> enabledActions) static StringtoShortString(PolicyConstraintsType constraints) static StringtoShortString(PolicyConstraintsType constraints, char join) static StringtoShortString(PolicyRuleType rule) static StringtoShortString(jakarta.xml.bind.JAXBElement<? extends AbstractPolicyConstraintType> constraint) static booleantriggerCollectionsEqual(Collection<EvaluatedPolicyRuleTriggerType> triggers, Collection<EvaluatedPolicyRuleTriggerType> currentTriggersUnpacked) static voidvisit(List<EvaluatedPolicyRuleTriggerType> triggers, Consumer<EvaluatedPolicyRuleTriggerType> visitor)
-
Constructor Details
-
PolicyRuleTypeUtil
public PolicyRuleTypeUtil()
-
-
Method Details
-
toShortString
-
toShortString
public static String toShortString(jakarta.xml.bind.JAXBElement<? extends AbstractPolicyConstraintType> constraint) -
toShortString
-
toShortString
-
toShortString
-
toShortString
public static String toShortString(PolicyActionsType actions, List<PolicyActionConfigItem<?>> enabledActions) - Parameters:
enabledActions- if null we don't consider action enabled/disabled state
-
toDiagShortcut
-
visit
public static void visit(List<EvaluatedPolicyRuleTriggerType> triggers, Consumer<EvaluatedPolicyRuleTriggerType> visitor) -
triggerCollectionsEqual
public static boolean triggerCollectionsEqual(Collection<EvaluatedPolicyRuleTriggerType> triggers, Collection<EvaluatedPolicyRuleTriggerType> currentTriggersUnpacked) -
filterActions
public static <T extends PolicyActionType> List<PolicyActionConfigItem<T>> filterActions(@NotNull @NotNull List<? extends PolicyActionConfigItem<?>> actions, @NotNull @NotNull Class<T> clazz) -
accept
public static boolean accept(PolicyConstraintsType pc, com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil.ConstraintVisitor visitor, boolean deep, boolean alsoRoots, QName rootElementName, boolean ignoreRefs) Returns false if the process was stopped by the consumer. All references should be resolved. -
toConstraintsList
public static List<jakarta.xml.bind.JAXBElement<AbstractPolicyConstraintType>> toConstraintsList(PolicyConstraintsType pc, boolean deep, boolean ignoreRefs) -
isApplicableToAssignment
Returns true if this policy rule can be applied to an assignment. By default, rules that have only object-related constraints, are said to be applicable to objects only (even if technically they could be applied to assignments as well). -
isApplicableToObject
Returns true if this policy rule can be applied to an object as a whole. -
isApplicableToProjection
Returns true if this policy rule can be applied to a projection. -
resolveConstraintReferences
public static void resolveConstraintReferences(List<PolicyRuleType> rules, Collection<? extends PolicyRuleType> otherRules) FIXME what about the origin of the constraints? -
getAllExclusionTriggers
@NotNull public static @NotNull List<EvaluatedExclusionTriggerType> getAllExclusionTriggers(List<EvaluatedPolicyRuleType> rules) -
createId
-
createId
-