Interface EvaluatedClockworkPolicyRule
- All Superinterfaces:
Cloneable,DebugDumpable,com.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRule,Serializable
- All Known Subinterfaces:
DirectlyEvaluatedClockworkPolicyRule,ForeignEvaluatedClockworkPolicyRule
public interface EvaluatedClockworkPolicyRule
extends com.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRule
A policy rule that was evaluated during clockwork processing. It is either:
-
DirectlyEvaluatedClockworkPolicyRule, i.e., rule that was evaluated on an object or an assignment
(this is a typical scenario),
- or ForeignEvaluatedClockworkPolicyRule, i.e., a rule that was evaluated and triggered on an assignment,
but is relevant also to a different assignment. This is typical for exclusion constraints that may be defined only
on one side (e.g. `Judge` having a rule "`Judge` excludes `Pirate`"), but should be applied also to the other side (`Pirate`).
The purpose of this class is to provide the necessary functionality when such rules are returned by
EvaluatedAssignment.getAllAssociatedPolicyRules() method.
A care must be taken how to interpret data returned from various getters in the case of foreign rules.
Please see ForeignEvaluatedClockworkPolicyRule for details.-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable EvaluatedAssignmentFor foreign rules, i.e. those that were "transplanted" to a differentEvaluatedAssignment, here it is.default Stringdefault EvaluatedAssignmentDeprecated.@Nullable EvaluatedAssignmentThe assignment that brought this policy rule to the focus or to the assignment target object.@NotNull Collection<EvaluatedExclusionTrigger>Returns all exclusion triggers that are relevant for the assignment owning this direct/foreign rule.default @NotNull com.evolveum.midpoint.repo.common.policy.TriggerFilterReturns a filter that keeps only triggers that are relevant for a policy rule after it was "transplanted" to a different assignment.static intgetTriggeredRulesCount(Collection<? extends EvaluatedClockworkPolicyRule> policyRules) booleanWas the rule already evaluated?booleanisGlobal()Is this a global policy rule?booleanWas this rule triggered, i.e. are there any triggers?Returns short, (more or less) user-level characterization of this object.Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRule
containsEnabledAction, containsEnabledAction, extractMessages, extractShortMessages, getActions, getActivityPath, getAllEventMarksOids, getAllTriggers, getAllTriggers, getCount, getEnabledAction, getEnabledActions, getEnabledActions, getName, getOrder, getPolicyConstraints, getPolicyMarkRef, getPolicyRuleBean, getPolicyRuleConfigItem, getPolicySituation, getPolicyThreshold, getRawActions, getRuleIdentifier, getRuleOrigin, getTriggers, hasSituationConstraint, hasThreshold, isContainedIn, isOverThreshold, setCount, toEvaluatedPolicyRuleBeans, trigger, trigger
-
Method Details
-
getOriginatingAssignment
The assignment that brought this policy rule to the focus or to the assignment target object. May be missing e.g. for object-related global policy rules or object collection related policy rules. (Note that assignment-related global policy rules have a value here.) -
getEvaluatedAssignment
Deprecated. -
getAssignmentOverride
For foreign rules, i.e. those that were "transplanted" to a differentEvaluatedAssignment, here it is. -
getAssignmentOverrideShortDump
-
getRelevantTriggersFilter
@NotNull default @NotNull com.evolveum.midpoint.repo.common.policy.TriggerFilter getRelevantTriggersFilter()Returns a filter that keeps only triggers that are relevant for a policy rule after it was "transplanted" to a different assignment. Approximate solution for now. -
isTriggered
boolean isTriggered()Was this rule triggered, i.e. are there any triggers? We do not distinguish between relevant and irrelevant triggers here, as foreign rules should have always some triggers, so this is always `true` for them.- Specified by:
isTriggeredin interfacecom.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRule
-
isEvaluated
boolean isEvaluated()Was the rule already evaluated? -
isGlobal
boolean isGlobal()Is this a global policy rule? -
getRelevantExclusionTriggers
Returns all exclusion triggers that are relevant for the assignment owning this direct/foreign rule. -
toShortString
String toShortString()Returns short, (more or less) user-level characterization of this object. -
getTriggeredRulesCount
-