Class PolicyRuleTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static String
static String
static <T extends PolicyActionType>
List<PolicyActionConfigItem<T>>filterActions
(@NotNull List<? extends PolicyActionConfigItem<?>> actions, @NotNull Class<T> clazz) static @NotNull List<EvaluatedExclusionTriggerType>
static boolean
Returns true if this policy rule can be applied to an assignment.static boolean
Returns true if this policy rule can be applied to an object as a whole.static boolean
Returns true if this policy rule can be applied to a projection.static void
resolveConstraintReferences
(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 String
toDiagShortcut
(PolicyConstraintKindType constraintKind) static String
toShortString
(PolicyActionsType actions) static String
toShortString
(PolicyActionsType actions, List<PolicyActionConfigItem<?>> enabledActions) static String
toShortString
(PolicyConstraintsType constraints) static String
toShortString
(PolicyConstraintsType constraints, char join) static String
toShortString
(PolicyRuleType rule) static String
toShortString
(jakarta.xml.bind.JAXBElement<? extends AbstractPolicyConstraintType> constraint) static boolean
triggerCollectionsEqual
(Collection<EvaluatedPolicyRuleTriggerType> triggers, Collection<EvaluatedPolicyRuleTriggerType> currentTriggersUnpacked) static void
visit
(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
-