Enum Class EvaluatedPolicyRule.TargetType

All Implemented Interfaces:
Serializable, Comparable<EvaluatedPolicyRule.TargetType>, Constable
Enclosing interface:

public static enum EvaluatedPolicyRule.TargetType extends Enum<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's OBJECT. If it's assigned directly to the assignment target, it's DIRECT_ASSIGNMENT_TARGET.
  • Enum Constant Details

    • OBJECT

      public static final EvaluatedPolicyRule.TargetType OBJECT
      Focus or projection

      public static final EvaluatedPolicyRule.TargetType DIRECT_ASSIGNMENT_TARGET
      The rule applies directly to the target of the current evaluated assignment (attached to this rule!).

      public static final EvaluatedPolicyRule.TargetType INDIRECT_ASSIGNMENT_TARGET
      The rule applies to a different target (induced to focus), stemming from the current evaluated assignment (attached to this rule). An example: Let `Engineer` induce `Employee` which conflicts with `Contractor`. An SoD rule is attached to `Employee`. But let the user have assignments for `Engineer` and `Contractor` only. So the target type for such rule is this one.
  • Method Details

    • values

      public static EvaluatedPolicyRule.TargetType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EvaluatedPolicyRule.TargetType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null