Interface EvaluatedPolicyRule
-
- All Superinterfaces:
Cloneable
,DebugDumpable
,Serializable
- All Known Implementing Classes:
EvaluatedPolicyRuleImpl
public interface EvaluatedPolicyRule extends DebugDumpable, Serializable, Cloneable
- Author:
- semancik
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
getTriggers
@NotNull @NotNull Collection<EvaluatedPolicyRuleTrigger<?>> getTriggers()
-
isTriggered
default boolean isTriggered()
-
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
PolicyRuleType getPolicyRule()
-
getPolicyConstraints
PolicyConstraintsType getPolicyConstraints()
-
getPolicyThreshold
PolicyThresholdType getPolicyThreshold()
-
getActions
PolicyActionsType getActions()
-
getAssignmentPath
AssignmentPath getAssignmentPath()
-
getDirectOwner
@Nullable @Nullable ObjectType getDirectOwner()
Object that "directly owns" the rule. TODO. [consider if really needed]
-
getPolicySituation
String getPolicySituation()
-
getPolicyExceptions
Collection<PolicyExceptionType> getPolicyExceptions()
-
addToEvaluatedPolicyRuleTypes
void addToEvaluatedPolicyRuleTypes(Collection<EvaluatedPolicyRuleType> rules, PolicyRuleExternalizationOptions options, Predicate<EvaluatedPolicyRuleTrigger<?>> triggerSelector, PrismContext prismContext)
-
isGlobal
boolean isGlobal()
-
toShortString
String toShortString()
-
extractMessages
List<TreeNode<LocalizableMessage>> extractMessages()
-
extractShortMessages
List<TreeNode<LocalizableMessage>> extractShortMessages()
-
containsEnabledAction
boolean containsEnabledAction()
-
containsEnabledAction
boolean containsEnabledAction(Class<? extends PolicyActionType> clazz)
-
getEnabledActions
Collection<PolicyActionType> getEnabledActions()
-
getEnabledActions
<T extends PolicyActionType> List<T> getEnabledActions(Class<T> clazz)
-
getEnabledAction
<T extends PolicyActionType> T getEnabledAction(Class<T> clazz)
-
addTrigger
void addTrigger(@NotNull @NotNull EvaluatedPolicyRuleTrigger<?> trigger)
-
getPolicyRuleIdentifier
String getPolicyRuleIdentifier()
-
-