Enum Class PolicyConstraintKind
- All Implemented Interfaces:
Serializable,Comparable<PolicyConstraintKind>,Constable
Characterizes a policy constraint kind from various points of view: applicability, visualization, etc.
Terminology:
- _policy constraint_ is the specific constraint, e.g. "hasAssignment of Superuser"; i.e. kind + parameters.
- _policy constraint kind_ is the kind (type) of the constraint, e.g. "hasAssignment".
Later we may split this class into separate classes, but for now, this is a convenient place where to add all
static information related to individual policy constraints kinds - to avoid forgetting them when introducing
new constraint kinds.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndication of the target, on which the constraint is to be applied: focus object, assignment, activity.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull PolicyConstraintKindType@NotNull StringtoString()static PolicyConstraintKindReturns the enum constant of this class with the specified name.static PolicyConstraintKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT_STATE
-
ASSIGNMENT_STATE
-
HAS_ASSIGNMENT
-
HAS_NO_ASSIGNMENT
-
REQUIREMENT
-
EXCLUSION
-
MIN_ASSIGNEES
This and the following constraint are a bit special. They CAN be evaluated against objects, but are typically used for assignments. Hence, we mark them as applicable to assignments. If you need to use them to objects, you must set the `evaluationTarget` toPolicyRuleEvaluationTargetType.OBJECTfor the rule. -
MAX_ASSIGNEES
SeeMIN_ASSIGNEES. -
OBJECT_MIN_ASSIGNEES_VIOLATION
-
OBJECT_MAX_ASSIGNEES_VIOLATION
-
OBJECT_MODIFICATION
-
ASSIGNMENT_MODIFICATION
-
OBJECT_TIME_VALIDITY
-
ASSIGNMENT_TIME_VALIDITY
-
SITUATION
-
CUSTOM
-
COLLECTION_STATS
-
ALWAYS_TRUE
-
ORPHANED
-
AND
-
OR
-
NOT
-
TRANSITION
-
EXECUTION_TIME
-
EXECUTION_ATTEMPTS
-
ITEM_PROCESSING_RESULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getItemNameLocalPart
-
getSerializableVersion
-
getSymbol
-
getApplicabilityRequirement
-
toString
- Overrides:
toStringin classEnum<PolicyConstraintKind>
-