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 ConstantsEnum ConstantDescriptionIndicates 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 TypeMethodDescriptionstatic SubtreeAccessibilityStateRetrieves the subtree accessibility state with the provided name.Retrieves the name for this subtree accessibility state.intintValue()Retrieves the integer value for this subtree accessibility state.booleanIndicates whether this state object represents the ACCESSIBLE state.booleanisHidden()Indicates whether this state object represents the HIDDEN state.booleanIndicates whether this subtree accessibility state is considered more restrictive than the provided state.booleanIndicates whether this state object represents one of the read-only states.booleanIndicates whether this state object represents one of the read-only states.toString()Retrieves a string representation of this subtree accessibility state.static SubtreeAccessibilityStatevalueOf(int intValue) Retrieves the subtree accessibility state with the specified integer value.static SubtreeAccessibilityStateReturns the enum constant of this type with the specified name.static SubtreeAccessibilityState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
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
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 theHIDDENstate, 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
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 nameNullPointerException- if the argument is null
-
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
Indicates whether this state object represents the ACCESSIBLE state.- Returns:
trueif this state object represents the ACCESSIBLE state, orfalseif not.
-
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:
trueif this state object represents the HIDDEN or TO_BE_DELETED state, orfalseif not.
-
isReadOnly
Indicates whether this state object represents one of the read-only states.- Returns:
trueif this state object represents one of the read-only states, orfalseif not.
-
isToBeDeleted
Indicates whether this state object represents one of the read-only states.- Returns:
trueif this state object represents one of the read-only states, orfalseif 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:TO_BE_DELETEDHIDDENREAD_ONLY_BIND_DENIEDREAD_ONLY_BIND_ALLOWEDACCESSIBLE
- Parameters:
state- The accessibility state to compare against this one. It must not benull.- Returns:
trueif this state is more restrictive than the provided state, orfalseif this state is the same as or less restrictive than the provided state.
-
valueOf
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
nullif 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 benull.- Returns:
- The subtree accessibility state with the specified name, or
nullif no state has the provided name.
-
toString
Retrieves a string representation of this subtree accessibility state.- Overrides:
toStringin classEnum<SubtreeAccessibilityState>- Returns:
- A string representation of this subtree accessibility state.
-