Enum EvaluatedPolicyRule.TargetType
- java.lang.Object
-
- java.lang.Enum<EvaluatedPolicyRule.TargetType>
-
- com.evolveum.midpoint.model.api.context.EvaluatedPolicyRule.TargetType
-
- All Implemented Interfaces:
Serializable
,Comparable<EvaluatedPolicyRule.TargetType>
- Enclosing interface:
- EvaluatedPolicyRule
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'sOBJECT
. If it's assigned directly to the assignment target, it'sDIRECT_ASSIGNMENT_TARGET
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT_ASSIGNMENT_TARGET
The rule applies directly to the target of the current evaluated assignment (attached to this rule!).INDIRECT_ASSIGNMENT_TARGET
The rule applies to a different target (induced to focus), stemming from the current evaluated assignment (attached to this rule).OBJECT
Focus or projection
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EvaluatedPolicyRule.TargetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EvaluatedPolicyRule.TargetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT
public static final EvaluatedPolicyRule.TargetType OBJECT
Focus or projection
-
DIRECT_ASSIGNMENT_TARGET
public static final EvaluatedPolicyRule.TargetType DIRECT_ASSIGNMENT_TARGET
The rule applies directly to the target of the current evaluated assignment (attached to this rule!).
-
INDIRECT_ASSIGNMENT_TARGET
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 Detail
-
values
public static EvaluatedPolicyRule.TargetType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EvaluatedPolicyRule.TargetType c : EvaluatedPolicyRule.TargetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvaluatedPolicyRule.TargetType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-