public class PolicyRuleTypeUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PolicyRuleTypeUtil.LazyMapConstraintsResolver |
Constructor and Description |
---|
PolicyRuleTypeUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
static <T extends PolicyActionType> |
filterActions(List<PolicyActionType> actions,
Class<T> clazz) |
static List<PolicyActionType> |
getAllActions(PolicyActionsType actions) |
static List<EvaluatedExclusionTriggerType> |
getAllExclusionTriggers(List<EvaluatedPolicyRuleType> rules) |
static boolean |
isApplicableToAssignment(PolicyRuleType rule)
Returns true if this policy rule can be applied to an assignment.
|
static boolean |
isApplicableToObject(PolicyRuleType rule)
Returns true if this policy rule can be applied to an object as a whole.
|
static void |
resolveReferences(List<PolicyRuleType> rules,
Collection<? extends PolicyRuleType> otherRules,
PrismContext prismContext) |
static void |
resolveReferences(PolicyConstraintsType pc,
com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil.ConstraintResolver resolver) |
static List<JAXBElement<AbstractPolicyConstraintType>> |
toConstraintsList(PolicyConstraintsType pc,
boolean deep,
boolean ignoreRefs) |
static String |
toDiagShortcut(PolicyConstraintKindType constraintKind) |
static String |
toShortString(JAXBElement<? extends AbstractPolicyConstraintType> constraint) |
static String |
toShortString(PolicyActionsType actions) |
static String |
toShortString(PolicyActionsType actions,
List<PolicyActionType> enabledActions) |
static String |
toShortString(PolicyConstraintsType constraints) |
static String |
toShortString(PolicyConstraintsType constraints,
char join) |
static boolean |
triggerCollectionsEqual(Collection<EvaluatedPolicyRuleTriggerType> triggers,
Collection<EvaluatedPolicyRuleTriggerType> currentTriggersUnpacked) |
static void |
visit(List<EvaluatedPolicyRuleTriggerType> triggers,
Consumer<EvaluatedPolicyRuleTriggerType> visitor) |
public static String toShortString(JAXBElement<? extends AbstractPolicyConstraintType> constraint)
public static String toShortString(PolicyConstraintsType constraints)
public static String toShortString(PolicyConstraintsType constraints, char join)
public static String toShortString(PolicyActionsType actions)
public static String toShortString(PolicyActionsType actions, List<PolicyActionType> enabledActions)
enabledActions
- if null we don't consider action enabled/disabled statepublic static String toDiagShortcut(PolicyConstraintKindType constraintKind)
public static void visit(List<EvaluatedPolicyRuleTriggerType> triggers, Consumer<EvaluatedPolicyRuleTriggerType> visitor)
public static boolean triggerCollectionsEqual(Collection<EvaluatedPolicyRuleTriggerType> triggers, Collection<EvaluatedPolicyRuleTriggerType> currentTriggersUnpacked)
public static List<PolicyActionType> getAllActions(PolicyActionsType actions)
public static <T extends PolicyActionType> List<T> filterActions(List<PolicyActionType> actions, Class<T> clazz)
public static boolean accept(PolicyConstraintsType pc, com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil.ConstraintVisitor visitor, boolean deep, boolean alsoRoots, QName rootElementName, boolean ignoreRefs)
public static List<JAXBElement<AbstractPolicyConstraintType>> toConstraintsList(PolicyConstraintsType pc, boolean deep, boolean ignoreRefs)
public static boolean isApplicableToAssignment(PolicyRuleType rule)
public static boolean isApplicableToObject(PolicyRuleType rule)
public static void resolveReferences(PolicyConstraintsType pc, com.evolveum.midpoint.schema.util.PolicyRuleTypeUtil.ConstraintResolver resolver) throws ObjectNotFoundException, SchemaException
public static void resolveReferences(List<PolicyRuleType> rules, Collection<? extends PolicyRuleType> otherRules, PrismContext prismContext) throws SchemaException, ObjectNotFoundException
@NotNull public static List<EvaluatedExclusionTriggerType> getAllExclusionTriggers(List<EvaluatedPolicyRuleType> rules)
Copyright © 2021 Evolveum. All rights reserved.