Enum Class IdempotenceType

java.lang.Object
java.lang.Enum<IdempotenceType>
com.evolveum.midpoint.xml.ns._public.common.common_3.IdempotenceType
All Implemented Interfaces:
TypeSafeEnum, Serializable, Comparable<IdempotenceType>, Constable

public enum IdempotenceType extends Enum<IdempotenceType> implements TypeSafeEnum
This value indicates, whether the evaluation of this role gives the same results regardless of its position in the assignment/inducement hierarchy. I.e. evaluation of this roles does not depend on the assignment parameters of focus or any of the preceding roles. This flag is used to enable aggressive caching of role evaluation, so idempotent roles are only evaluated once regardless of their position in the hierarchy as we can assume that any subsequent evaluation will produce exactly the same results as the first evaluation. This is a very important feature that allows efficient evaluation of big role hierarchies.
  • Enum Constant Details

    • NONE

      public static final IdempotenceType NONE
      Role is not idempotent. The role must be evaluated for all situations: all assignment paths, all orders, etc.
    • CONSERVATIVE

      public static final IdempotenceType CONSERVATIVE
      This value indicates, that the evaluation of this role gives the same results regardless of its position in the assignment/inducement hierarchy. I.e. evaluation of this roles does not depend on the assignment parameters of focus or any of the preceding roles. However, the role will still be re-evaluated if it is found with assignment path of different depths or orders (e.g. in meta-role situations).
    • AGGRESSIVE

      public static final IdempotenceType AGGRESSIVE
      This value indicates, that the evaluation of this role gives the same results regardless of its position in the assignment/inducement hierarchy including different path lengths and evaluation orders. I.e. evaluation of this roles does not depend on the assignment parameters of focus or any of the preceding roles and it has no meta-role capability (e.g. higher-order inducements).
  • Method Details

    • values

      public static IdempotenceType[] 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

      public static IdempotenceType 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.)
      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 name
      NullPointerException - if the argument is null
    • value

      public String value()
      Description copied from interface: TypeSafeEnum
      Returns enum value defined as in schema.
      Specified by:
      value in interface TypeSafeEnum
      Returns:
    • fromValue

      public static IdempotenceType fromValue(String v)