Enum Class PersistentSearchChangeType
java.lang.Object
java.lang.Enum<PersistentSearchChangeType>
org.forgerock.opendj.ldap.controls.PersistentSearchChangeType
- All Implemented Interfaces:
Serializable,Comparable<PersistentSearchChangeType>,java.lang.constant.Constable
A persistent search change type as defined in draft-ietf-ldapext-psearch is
used to indicate the type of update operation that caused an entry change
notification to occur.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that an Add operation triggered the entry change notification.Indicates that an Delete operation triggered the entry change notification.Indicates that an Modify operation triggered the entry change notification.Indicates that an Modify DN operation triggered the entry change notification. -
Method Summary
Modifier and TypeMethodDescriptionintintValue()Returns the integer value for this change type as defined in the internet draft.static Set<PersistentSearchChangeType>toSet(int changeTypes) Returns the set of enum values corresponding to the encoded persistent change types.toString()static PersistentSearchChangeTypevalueOf(int value) Returns the enum value that would return the provided argument value from itsintValuemethod.static PersistentSearchChangeTypeReturns the enum constant of this class with the specified name.static PersistentSearchChangeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
Indicates that an Add operation triggered the entry change notification. -
DELETE
Indicates that an Delete operation triggered the entry change notification. -
MODIFY
Indicates that an Modify operation triggered the entry change notification. -
MODIFY_DN
Indicates that an Modify DN operation triggered the entry change notification.
-
-
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:
toStringin classEnum<PersistentSearchChangeType>
-
intValue
public int intValue()Returns the integer value for this change type as defined in the internet draft.- Returns:
- The integer value for this change type.
-
valueOf
Returns the enum value that would return the provided argument value from itsintValuemethod.- Parameters:
value- The value to match.- Returns:
- The appropriate enum value.
-
toSet
Returns the set of enum values corresponding to the encoded persistent change types.- Parameters:
changeTypes- The persistent change types encoded as an int.- Returns:
- set of enum values corresponding to the encoded persistent change types.
- Throws:
DecodeException- if the change types value is invalid
-