Package org.forgerock.opendj.rest2ldap
Enum Class WritabilityPolicy
- All Implemented Interfaces:
Serializable
,Comparable<WritabilityPolicy>
,java.lang.constant.Constable
The writability policy determines whether an attribute supports updates.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe attribute may be provided when creating a new resource, but cannot be modified afterwards.The attribute may be provided when creating a new resource, but cannot be modified afterwards.The attribute cannot be provided when creating a new resource, nor modified afterwards.The attribute cannot be provided when creating a new resource, nor modified afterwards.The attribute may be provided when creating a new resource, and modified afterwards. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static WritabilityPolicy
Returns the enum constant of this class with the specified name.static WritabilityPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
The attribute may be provided when creating a new resource, and modified afterwards.
-
-
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
-
toString
- Overrides:
toString
in classEnum<WritabilityPolicy>
-