Interface EvaluatedPolicyRule
-
- All Superinterfaces:
AssociatedPolicyRule
,Cloneable
,DebugDumpable
,Serializable
- All Known Implementing Classes:
EvaluatedPolicyRuleImpl
public interface EvaluatedPolicyRule extends AssociatedPolicyRule
TODO document this interface and its methods- Author:
- semancik
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EvaluatedPolicyRule.TargetType
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
-
Methods inherited from interface com.evolveum.midpoint.model.api.context.AssociatedPolicyRule
addToEvaluatedPolicyRuleBeans, addTrigger, containsEnabledAction, getEnabledAction, getEnabledActions, getEvaluatedPolicyRule, getNewOwner, getNewOwnerShortString, getPolicyRuleIdentifier, getPolicySituation, getRelevantExclusionTriggers, isTriggered, toShortString
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
getTriggers
@NotNull @NotNull Collection<EvaluatedPolicyRuleTrigger<?>> getTriggers()
-
getAllTriggers
@NotNull @NotNull Collection<EvaluatedPolicyRuleTrigger<?>> getAllTriggers()
Returns all triggers, even those that were indirectly collected via situation policy rules.
-
getAllTriggers
<T extends EvaluatedPolicyRuleTrigger<?>> Collection<T> getAllTriggers(Class<T> type)
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
String getName()
-
getPolicyRule
@NotNull @NotNull PolicyRuleType getPolicyRule()
-
getPolicyConstraints
PolicyConstraintsType getPolicyConstraints()
-
getPolicyThreshold
PolicyThresholdType getPolicyThreshold()
-
getActions
PolicyActionsType getActions()
-
getEvaluatedAssignment
@Nullable @Nullable EvaluatedAssignment 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<PolicyActionType> getEnabledActions()
-
hasThreshold
default boolean hasThreshold()
-
getCount
int getCount()
-
setCount
void setCount(int value)
-
isOverThreshold
boolean isOverThreshold() throws ConfigurationException
- Throws:
ConfigurationException
-
hasSituationConstraint
boolean hasSituationConstraint()
-
isApplicableToFocusObject
default boolean isApplicableToFocusObject()
-
isApplicableToProjection
default boolean isApplicableToProjection()
-
isApplicableToAssignment
default boolean isApplicableToAssignment()
-
getTargetType
@NotNull @NotNull EvaluatedPolicyRule.TargetType getTargetType()
To which object is the policy rule targeted and how.
-
contains
static boolean contains(List<? extends EvaluatedPolicyRule> rules, EvaluatedPolicyRule otherRule)
-
-