Interface EvaluatedPolicyRule
- All Superinterfaces:
AssociatedPolicyRule
,Cloneable
,DebugDumpable
,Serializable
TODO document this interface and its methods
- Author:
- semancik
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
To which object is the policy rule targeted, from the point of assignment mechanisms - and how? For example, if it's assigned to the focus (to be applied either to the focus or the projections), then it'sEvaluatedPolicyRule.TargetType.OBJECT
. -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(List<? extends EvaluatedPolicyRule> rules, EvaluatedPolicyRule otherRule) boolean
@NotNull Collection<EvaluatedPolicyRuleTrigger<?>>
Returns all triggers, even those that were indirectly collected via situation policy rules.<T extends EvaluatedPolicyRuleTrigger<?>>
Collection<T>getAllTriggers
(Class<T> type) Returns all triggers of given type, stepping down to situation policy rules and composite triggers.int
getCount()
Collection<? extends PolicyActionConfigItem<?>>
Returns all enabled actions.@Nullable EvaluatedAssignment
Evaluated assignment that brought this policy rule to the focus or target.@Nullable String
getName()
Name of the policy rule, as configured.@NotNull PolicyRuleType
@NotNull EvaluatedPolicyRule.TargetType
To which object is the policy rule targeted and how.@NotNull Collection<EvaluatedPolicyRuleTrigger<?>>
boolean
default boolean
default boolean
default boolean
default boolean
boolean
isGlobal()
boolean
void
setCount
(int value) Methods inherited from interface com.evolveum.midpoint.model.api.context.AssociatedPolicyRule
addToEvaluatedPolicyRuleBeans, addTrigger, containsEnabledAction, getEnabledAction, getEnabledActions, getEvaluatedPolicyRule, getNewOwner, getNewOwnerShortString, getPolicyMarkRef, getPolicyRuleIdentifier, getPolicySituation, getRelevantExclusionTriggers, isEvaluated, isTriggered, toShortString
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getTriggers
-
getAllTriggers
Returns all triggers, even those that were indirectly collected via situation policy rules. -
getAllTriggers
Returns all triggers of given type, stepping down to situation policy rules and composite triggers. An exception are composite "not" triggers: it is usually of no use to collect negated triggers. -
getName
Name of the policy rule, as configured. -
getPolicyRule
-
getPolicyConstraints
PolicyConstraintsType getPolicyConstraints() -
getPolicyThreshold
PolicyThresholdType getPolicyThreshold() -
getActions
PolicyActionsType getActions() -
getEvaluatedAssignment
Evaluated assignment that brought this policy rule to the focus or target. May be missing for artificially-crafted policy rules (to be reviewed!) -
getAssignmentPath
AssignmentPath getAssignmentPath() -
isGlobal
boolean isGlobal() -
extractMessages
List<TreeNode<LocalizableMessage>> extractMessages() -
extractShortMessages
List<TreeNode<LocalizableMessage>> extractShortMessages() -
containsEnabledAction
boolean containsEnabledAction() -
getEnabledActions
Collection<? extends PolicyActionConfigItem<?>> getEnabledActions()Returns all enabled actions. Fails if they were not computed yet. -
hasThreshold
default boolean hasThreshold() -
getCount
int getCount() -
setCount
void setCount(int value) -
isOverThreshold
- Throws:
ConfigurationException
-
hasSituationConstraint
boolean hasSituationConstraint() -
isApplicableToFocusObject
default boolean isApplicableToFocusObject() -
isApplicableToProjection
default boolean isApplicableToProjection() -
isApplicableToAssignment
default boolean isApplicableToAssignment() -
getTargetType
To which object is the policy rule targeted and how. -
contains
-