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
  • Method Details

    • 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

      @Nullable @Nullable String getName()
      Name of the policy rule, as configured.
    • 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<? 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

      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)