Package com.unboundid.ldap.sdk
Class DereferencePolicy
java.lang.Object
com.unboundid.ldap.sdk.DereferencePolicy
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class DereferencePolicy
extends Object
implements Serializable
This class defines a data type for dereference policy values. Clients should
generally use one of the
NEVER, SEARCHING, FINDING,
or ALWAYS values, although it is possible to create a new dereference
policy with a specified integer value if necessary using the
valueOf(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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DereferencePolicyA 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 final DereferencePolicyA 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 final DereferencePolicyA predefined dereference policy value which indicates that the server should not dereference any aliases that it encounters.static final DereferencePolicyA 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
Modifier and TypeMethodDescriptionstatic DereferencePolicydefinedValueOf(int intValue) Retrieves the predefined dereference policy with the specified integer value.booleanIndicates whether the provided object is equal to this dereference policy.getName()Retrieves the name for this dereference policy.inthashCode()The hash code for this dereference policy.intintValue()Retrieves the integer value for this dereference policy.toString()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 Details
-
NEVER
A predefined dereference policy value which indicates that the server should not dereference any aliases that it encounters. -
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
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
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 Details
-
getName
Retrieves the name for this dereference policy.- Returns:
- The name for this dereference policy.
-
intValue
Retrieves the integer value for this dereference policy.- Returns:
- The integer value for this dereference policy.
-
valueOf
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
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
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
The hash code for this dereference policy. -
equals
Indicates whether the provided object is equal to this dereference policy. -
toString
Retrieves a string representation of this dereference policy.
-