Enum SubtreeAccessibilityState

java.lang.Object
java.lang.Enum<SubtreeAccessibilityState>
com.unboundid.ldap.sdk.unboundidds.extensions.SubtreeAccessibilityState
All Implemented Interfaces:
Serializable, Comparable<SubtreeAccessibilityState>, java.lang.constant.Constable

This enum defines the set of allowed accessibility states that may be used with the SetSubtreeAccessibilityExtendedRequest.
NOTE: This class, and other classes within the com.unboundid.ldap.sdk.unboundidds package structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Indicates that the subtree should return to normal accessibility so that all appropriately-authorized users will be able to perform all kinds of operations in the target subtree.
    Indicates that the subtree should be made hidden so that it is not accessible to most clients for any kinds of operations.
    Indicates that the subtree should be made read-only so that search and compare operations targeting those entries will be allowed, but add, delete, modify, and modify DN operations will only be allowed for one specified user (as indicated in the set subtree accessibility request).
    Indicates that the subtree should be made read-only so that search and compare operations targeting those entries will be allowed, but add, delete, modify, and modify DN operations will only be allowed for one specified user (as indicated in the set subtree accessibility request).
    Indicates that the subtree is intended to be deleted.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the subtree accessibility state with the provided name.
    Retrieves the name for this subtree accessibility state.
    int
    Retrieves the integer value for this subtree accessibility state.
    boolean
    Indicates whether this state object represents the ACCESSIBLE state.
    boolean
    Indicates whether this state object represents the HIDDEN state.
    boolean
    Indicates whether this subtree accessibility state is considered more restrictive than the provided state.
    boolean
    Indicates whether this state object represents one of the read-only states.
    boolean
    Indicates whether this state object represents one of the read-only states.
    Retrieves a string representation of this subtree accessibility state.
    valueOf(int intValue)
    Retrieves the subtree accessibility state with the specified integer value.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ACCESSIBLE

      Indicates that the subtree should return to normal accessibility so that all appropriately-authorized users will be able to perform all kinds of operations in the target subtree.
    • READ_ONLY_BIND_ALLOWED

      Indicates that the subtree should be made read-only so that search and compare operations targeting those entries will be allowed, but add, delete, modify, and modify DN operations will only be allowed for one specified user (as indicated in the set subtree accessibility request). Bind operations will be allowed, but any changes intended to update password policy or other account state (e.g., to record failed authentication attempts or update last login time) will not be applied.
    • READ_ONLY_BIND_DENIED

      Indicates that the subtree should be made read-only so that search and compare operations targeting those entries will be allowed, but add, delete, modify, and modify DN operations will only be allowed for one specified user (as indicated in the set subtree accessibility request). Bind operations will not be allowed for any user in the specified subtree.
    • HIDDEN

      public static final SubtreeAccessibilityState HIDDEN
      Indicates that the subtree should be made hidden so that it is not accessible to most clients for any kinds of operations. The subtree will be available to one specified user (as indicated in the set subtree accessibility request) for add, compare, delete, modify, modify DN, and search operations. Bind operations will not be allowed for any user in a hidden subtree.
    • TO_BE_DELETED

      Indicates that the subtree is intended to be deleted. It will behave in the same way as the HIDDEN state, with the exception that the server will not allow any further changes to the subtree accessibility state. That accessibility state will persist until the entry at the base of the subtree has been removed.
  • Method Details

    • values

      public static SubtreeAccessibilityState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • intValue

      public int intValue()
      Retrieves the integer value for this subtree accessibility state.
      Returns:
      The integer value for this subtree accessibility state.
    • getStateName

      Retrieves the name for this subtree accessibility state.
      Returns:
      The name for this subtree accessibility state.
    • isAccessible

      public boolean isAccessible()
      Indicates whether this state object represents the ACCESSIBLE state.
      Returns:
      true if this state object represents the ACCESSIBLE state, or false if not.
    • isHidden

      public boolean isHidden()
      Indicates whether this state object represents the HIDDEN state. For the purpose of this method, TO_BE_DELETED will also be considered to be HIDDEN, since the server will treat the two states as equivalent with the exception that the accessibility state of TO_BE_DELETED subtrees cannot be changed.
      Returns:
      true if this state object represents the HIDDEN or TO_BE_DELETED state, or false if not.
    • isReadOnly

      public boolean isReadOnly()
      Indicates whether this state object represents one of the read-only states.
      Returns:
      true if this state object represents one of the read-only states, or false if not.
    • isToBeDeleted

      public boolean isToBeDeleted()
      Indicates whether this state object represents one of the read-only states.
      Returns:
      true if this state object represents one of the read-only states, or false if not.
    • isMoreRestrictiveThan

      Indicates whether this subtree accessibility state is considered more restrictive than the provided state. States will be considered in the following descending order of restrictiveness:
      1. TO_BE_DELETED
      2. HIDDEN
      3. READ_ONLY_BIND_DENIED
      4. READ_ONLY_BIND_ALLOWED
      5. ACCESSIBLE
      Parameters:
      state - The accessibility state to compare against this one. It must not be null.
      Returns:
      true if this state is more restrictive than the provided state, or false if this state is the same as or less restrictive than the provided state.
    • valueOf

      @Nullable public static SubtreeAccessibilityState valueOf(int intValue)
      Retrieves the subtree accessibility state with the specified integer value.
      Parameters:
      intValue - The integer value for the state to retrieve.
      Returns:
      The subtree accessibility state with the specified integer value, or null if there is no accessibility state with the specified integer value.
    • forName

      Retrieves the subtree accessibility state with the provided name.
      Parameters:
      name - The name for the subtree accessibility state to retrieve. It must not be null.
      Returns:
      The subtree accessibility state with the specified name, or null if no state has the provided name.
    • toString

      Retrieves a string representation of this subtree accessibility state.
      Overrides:
      toString in class Enum<SubtreeAccessibilityState>
      Returns:
      A string representation of this subtree accessibility state.