Class DereferencePolicy

java.lang.Object
com.unboundid.ldap.sdk.DereferencePolicy
All Implemented Interfaces:
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

    Fields
    Modifier and Type
    Field
    Description
    static final DereferencePolicy
    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.
    static final DereferencePolicy
    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.
    static final DereferencePolicy
    A predefined dereference policy value which indicates that the server should not dereference any aliases that it encounters.
    static final DereferencePolicy
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    definedValueOf(int intValue)
    Retrieves the predefined dereference policy with the specified integer value.
    boolean
    Indicates whether the provided object is equal to this dereference policy.
    Retrieves the name for this dereference policy.
    int
    The hash code for this dereference policy.
    int
    Retrieves the integer value for this dereference policy.
    Retrieves a string representation of this dereference policy.
    valueOf(int intValue)
    Retrieves the dereference policy with the specified integer value.
    Retrieves an array of all dereference policies defined in the LDAP SDK.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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 Details

    • 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 null if 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:
      hashCode in class Object
      Returns:
      The hash code for this dereference policy.
    • equals

      public boolean equals(@Nullable Object o)
      Indicates whether the provided object is equal to this dereference policy.
      Overrides:
      equals in class Object
      Parameters:
      o - The object for which to make the determination.
      Returns:
      true if the provided object is a dereference policy that is equal to this dereference policy, or false if not.
    • toString

      Retrieves a string representation of this dereference policy.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this dereference policy.