Package com.unboundid.ldap.sdk
Class DereferencePolicy
- java.lang.Object
-
- com.unboundid.ldap.sdk.DereferencePolicy
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DereferencePolicy extends java.lang.Object implements java.io.Serializable
This class defines a data type for dereference policy values. Clients should generally use one of theNEVER,SEARCHING,FINDING, orALWAYSvalues, although it is possible to create a new dereference policy with a specified integer value if necessary using thevalueOf(int)method. The following dereference policy values are defined:NEVER-- Indicates that the server should not dereference any aliases that it encounters.SEARCHING-- Indicates that the server should dereference any aliases that it may encounter while examining candidate entries, but it should not dereference the base entry if it happens to be an alias entry.FINDING-- Indicates that the server should dereference the base entry if it happens to be an alias entry, but it should not dereference any alias entries that may be encountered while examining candidate entries.ALWAYS-- Indicates that the server should dereference the base entry if it happens to be an alias entry, and should also dereference any entries that may be encountered while examining candidates.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DereferencePolicyALWAYSA predefined dereference policy value which indicates that the server should dereference the base entry if it happens to be an alias entry, and should also dereference any entries that may be encountered while examining candidates.static DereferencePolicyFINDINGA predefined dereference policy value which indicates that the server should dereference the base entry if it happens to be an alias entry, but it should not dereference any alias entries that may be encountered while examining candidate entries.static DereferencePolicyNEVERA predefined dereference policy value which indicates that the server should not dereference any aliases that it encounters.static DereferencePolicySEARCHINGA predefined dereference policy value which indicates that the server should dereference any aliases that it may encounter while examining candidate entries, but it should not dereference the base entry if it happens to be an alias entry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DereferencePolicydefinedValueOf(int intValue)Retrieves the predefined dereference policy with the specified integer value.booleanequals(java.lang.Object o)Indicates whether the provided object is equal to this dereference policy.java.lang.StringgetName()Retrieves the name for this dereference policy.inthashCode()The hash code for this dereference policy.intintValue()Retrieves the integer value for this dereference policy.java.lang.StringtoString()Retrieves a string representation of this dereference policy.static DereferencePolicyvalueOf(int intValue)Retrieves the dereference policy with the specified integer value.static DereferencePolicy[]values()Retrieves an array of all dereference policies defined in the LDAP SDK.
-
-
-
Field Detail
-
NEVER
@NotNull public static final DereferencePolicy NEVER
A predefined dereference policy value which indicates that the server should not dereference any aliases that it encounters.
-
SEARCHING
@NotNull public static final DereferencePolicy SEARCHING
A predefined dereference policy value which indicates that the server should dereference any aliases that it may encounter while examining candidate entries, but it should not dereference the base entry if it happens to be an alias entry.
-
FINDING
@NotNull public static final DereferencePolicy FINDING
A predefined dereference policy value which indicates that the server should dereference the base entry if it happens to be an alias entry, but it should not dereference any alias entries that may be encountered while examining candidate entries.
-
ALWAYS
@NotNull public static final DereferencePolicy ALWAYS
A predefined dereference policy value which indicates that the server should dereference the base entry if it happens to be an alias entry, and should also dereference any entries that may be encountered while examining candidates.
-
-
Method Detail
-
getName
@NotNull public java.lang.String getName()
Retrieves the name for this dereference policy.- Returns:
- The name for this dereference policy.
-
intValue
public int intValue()
Retrieves the integer value for this dereference policy.- Returns:
- The integer value for this dereference policy.
-
valueOf
@NotNull public static DereferencePolicy valueOf(int intValue)
Retrieves the dereference policy with the specified integer value.- Parameters:
intValue- The integer value for which to retrieve the corresponding dereference policy.- Returns:
- The dereference policy with the specified integer value, or a new dereference policy if the provided value does not match any of the predefined policies.
-
definedValueOf
@Nullable public static DereferencePolicy definedValueOf(int intValue)
Retrieves the predefined dereference policy with the specified integer value.- Parameters:
intValue- The integer value for which to retrieve the corresponding dereference policy.- Returns:
- The dereference policy with the specified integer value, or
nullif the provided value does not match any of the predefined policies.
-
values
@NotNull public static DereferencePolicy[] values()
Retrieves an array of all dereference policies defined in the LDAP SDK.- Returns:
- An array of all dereference policies defined in the LDAP SDK.
-
hashCode
public int hashCode()
The hash code for this dereference policy.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code for this dereference policy.
-
equals
public boolean equals(@Nullable java.lang.Object o)
Indicates whether the provided object is equal to this dereference policy.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object for which to make the determination.- Returns:
trueif the provided object is a dereference policy that is equal to this dereference policy, orfalseif not.
-
-