Interface DirectlyEvaluatedClockworkPolicyRule
- All Superinterfaces:
Cloneable,DebugDumpable,EvaluatedClockworkPolicyRule,com.evolveum.midpoint.repo.common.policy.EvaluatedPolicyRule,Serializable
An
EvaluatedClockworkPolicyRule that was directly evaluated against an object or an assignment.
Such a rule can then be co-attached to a related assignment (e.g. in the case of exclusion violation defined on
a single side only) by wrapping in ForeignEvaluatedClockworkPolicyRule.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumTo which object is the policy rule (that has this target type) targeted, from the point of assignment mechanisms - and how? -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptiondefault AssignmentPathDeprecated.Information about exact place where the rule was found.To which object is the policy rule targeted and how.default booleandefault booleandefault booleanMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.model.api.context.EvaluatedClockworkPolicyRule
getAssignmentOverride, getAssignmentOverrideShortDump, getEvaluatedAssignment, getOriginatingAssignment, getRelevantExclusionTriggers, getRelevantTriggersFilter, isEvaluated, isGlobal, isTriggered, toShortStringMethods 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
-
getRuleAssignmentPath
AssignmentPath getRuleAssignmentPath()Information about exact place where the rule was found. This can be important for rules that are indirectly attached to an assignment. An example: Let `Engineer` induce `Employee` which conflicts with `Contractor`. The SoD rule is attached to `Employee`. But let the user have assignments for `Engineer` and `Contractor` only. When evaluating `Engineer` assignment, we find a (indirectly attached) SoD rule. But we need to know it came from `Employee`. This is what `assignmentPath` (`Engineer`->`Employee`->(maybe some metarole)->rule) is for. For global policy rules, `assignmentPath` is the path to the target object that matched global policy rule. See alsogetTargetType(). It can null for artificially-created policy rules e.g. in task validity cases. TODO To be reviewed. -
getAssignmentPath
Deprecated. -
getTargetType
To which object is the policy rule targeted and how. SeeDirectlyEvaluatedClockworkPolicyRule.TargetTypefor detailed explanation. -
isApplicableToFocusObject
default boolean isApplicableToFocusObject() -
isApplicableToProjection
default boolean isApplicableToProjection() -
isApplicableToAssignment
default boolean isApplicableToAssignment()
-