Enum Class WritabilityPolicy

java.lang.Object
java.lang.Enum<WritabilityPolicy>
org.forgerock.opendj.rest2ldap.WritabilityPolicy
All Implemented Interfaces:
Serializable, Comparable<WritabilityPolicy>, java.lang.constant.Constable

public enum WritabilityPolicy extends Enum<WritabilityPolicy>
The writability policy determines whether an attribute supports updates.
  • Enum Constant Details

    • READ_ONLY

      public static final WritabilityPolicy READ_ONLY
      The attribute cannot be provided when creating a new resource, nor modified afterwards. Attempts to update the attribute will result in an error.
    • READ_ONLY_DISCARD_WRITES

      public static final WritabilityPolicy READ_ONLY_DISCARD_WRITES
      The attribute cannot be provided when creating a new resource, nor modified afterwards. Attempts to update the attribute will not result in an error (the new values will be ignored).
    • CREATE_ONLY

      public static final WritabilityPolicy CREATE_ONLY
      The attribute may be provided when creating a new resource, but cannot be modified afterwards. Attempts to update the attribute will result in an error.
    • CREATE_ONLY_DISCARD_WRITES

      public static final WritabilityPolicy CREATE_ONLY_DISCARD_WRITES
      The attribute may be provided when creating a new resource, but cannot be modified afterwards. Attempts to update the attribute will not result in an error (the new values will be ignored).
    • READ_WRITE

      public static final WritabilityPolicy READ_WRITE
      The attribute may be provided when creating a new resource, and modified afterwards.
  • Method Details

    • values

      public static WritabilityPolicy[] 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 WritabilityPolicy 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<WritabilityPolicy>