@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SetSubtreeAccessibilityExtendedRequest extends ExtendedRequest
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.
SetSubtreeAccessibilityRequestValue ::= SEQUENCE { subtreeBaseDN LDAPDN, subtreeAccessibility ENUMERATED { accessible (0), read-only-bind-allowed (1), read-only-bind-denied (2), hidden (3), to-be-deleted (4), ... }, bypassUserDN [0] LDAPDN OPTIONAL, additionalSubtreeBaseDNs [1] SEQUENCE OF LDAPDN OPTIONAL, ... }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SET_SUBTREE_ACCESSIBILITY_REQUEST_OID
The OID (1.3.6.1.4.1.30221.2.6.19) for the set subtree accessibility
extended request.
|
TYPE_EXTENDED_REQUEST_OID, TYPE_EXTENDED_REQUEST_VALUE
Constructor and Description |
---|
SetSubtreeAccessibilityExtendedRequest(ExtendedRequest extendedRequest)
Creates a new set subtree accessibility extended request from the provided
generic extended request.
|
Modifier and Type | Method and Description |
---|---|
static SetSubtreeAccessibilityExtendedRequest |
createSetAccessibleRequest(java.util.Collection<java.lang.String> subtreeBaseDNs,
Control... controls)
Creates a new set subtree accessibility extended request that will make the
specified subtrees accessible.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetAccessibleRequest(java.lang.String subtreeBaseDN,
Control... controls)
Creates a new set subtree accessibility extended request that will make the
specified subtree accessible.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetHiddenRequest(java.util.Collection<java.lang.String> subtreeBaseDNs,
java.lang.String bypassUserDN,
Control... controls)
Creates a new set subtree accessibility extended request that will make the
specified subtrees hidden.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetHiddenRequest(java.lang.String subtreeBaseDN,
java.lang.String bypassUserDN,
Control... controls)
Creates a new set subtree accessibility extended request that will make the
specified subtree hidden.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetReadOnlyRequest(java.util.Collection<java.lang.String> subtreeBaseDNs,
boolean allowBind,
java.lang.String bypassUserDN,
Control... controls)
Creates a new set subtree accessibility extended request that will make the
specified subtrees read-only.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetReadOnlyRequest(java.lang.String subtreeBaseDN,
boolean allowBind,
java.lang.String bypassUserDN,
Control... controls)
Creates a new set subtree accessibility extended request that will make the
specified subtree read-only.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetToBeDeletedRequest(java.util.Collection<java.lang.String> subtreeBaseDNs,
java.lang.String bypassUserDN,
Control... controls)
Creates a new set subtree accessibility extended request that will place
the specified subtrees in a to-be-deleted state.
|
static SetSubtreeAccessibilityExtendedRequest |
createSetToBeDeletedRequest(java.lang.String subtreeBaseDN,
java.lang.String bypassUserDN,
Control... controls)
Creates a new set subtree accessibility extended request that will place
the specified subtree in a to-be-deleted state.
|
SetSubtreeAccessibilityExtendedRequest |
duplicate()
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
SetSubtreeAccessibilityExtendedRequest |
duplicate(Control[] controls)
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
SubtreeAccessibilityState |
getAccessibilityState()
Retrieves the accessibility state to apply to the target subtrees.
|
java.lang.String |
getBypassUserDN()
Retrieves the DN of the user that will be allowed to bypass the
restrictions imposed on the target subtrees for all other users.
|
java.lang.String |
getExtendedRequestName()
Retrieves the user-friendly name for the extended request, if available.
|
java.lang.String |
getSubtreeBaseDN()
Retrieves the base DN for the target subtree.
|
java.util.List<java.lang.String> |
getSubtreeBaseDNs()
Retrieves the base DNs for all target subtrees.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this request to the provided buffer.
|
encodeProtocolOp, getLastMessageID, getOID, getOperationType, getProtocolOpType, getValue, hasValue, process, responseReceived, toCode, writeTo
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getReferralConnector, getReferralConnectorInternal, getReferralDepth, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setReferralConnector, setReferralDepth, setResponseTimeoutMillis, toString
@NotNull public static final java.lang.String SET_SUBTREE_ACCESSIBILITY_REQUEST_OID
public SetSubtreeAccessibilityExtendedRequest(@NotNull ExtendedRequest extendedRequest) throws LDAPException
extendedRequest
- The generic extended request to use to create this
set subtree accessibility extended request.LDAPException
- If a problem occurs while decoding the request.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetAccessibleRequest(@NotNull java.lang.String subtreeBaseDN, @Nullable Control... controls)
subtreeBaseDN
- The base DN for the subtree to make accessible. It
must not be null
.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetAccessibleRequest(@NotNull java.util.Collection<java.lang.String> subtreeBaseDNs, @Nullable Control... controls)
subtreeBaseDNs
- The base DNs for the subtrees to make accessible.
It must not be null
or empty. If multiple
base DNs are specified, then all must reside below
the same backend base DN.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetReadOnlyRequest(@NotNull java.lang.String subtreeBaseDN, boolean allowBind, @Nullable java.lang.String bypassUserDN, @Nullable Control... controls)
subtreeBaseDN
- The base DN for the subtree to make read-only. It
must not be null
.allowBind
- Indicates whether users within the specified subtree
will be allowed to bind.bypassUserDN
- The DN of a user that will be allowed to perform
write (add, delete, modify, and modify DN)
operations in the specified subtree. It may be
null
if no bypass user is needed.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetReadOnlyRequest(@NotNull java.util.Collection<java.lang.String> subtreeBaseDNs, boolean allowBind, @Nullable java.lang.String bypassUserDN, @Nullable Control... controls)
subtreeBaseDNs
- The base DNs for the subtrees to make read-only.
It must not be null
or empty. If multiple
base DNs are specified, then all must reside below
the same backend base DN.allowBind
- Indicates whether users within the specified
subtrees will be allowed to bind.bypassUserDN
- The DN of a user that will be allowed to perform
write (add, delete, modify, and modify DN)
operations in the specified subtrees. It may be
null
if no bypass user is needed.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetHiddenRequest(@NotNull java.lang.String subtreeBaseDN, @Nullable java.lang.String bypassUserDN, @Nullable Control... controls)
subtreeBaseDN
- The base DN for the subtree to make hidden. It must
not be null
.bypassUserDN
- The DN of a user that will be allowed to perform
write (add, delete, modify, and modify DN)
operations in the specified subtree. It may be
null
if no bypass user is needed.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetHiddenRequest(@NotNull java.util.Collection<java.lang.String> subtreeBaseDNs, @Nullable java.lang.String bypassUserDN, @Nullable Control... controls)
subtreeBaseDNs
- The base DNs for the subtrees to make hidden. It
must not be null
or empty. If multiple
base DNs are specified, then all must reside below
the same backend base DN.bypassUserDN
- The DN of a user that will be allowed to perform
write (add, delete, modify, and modify DN)
operations in the specified subtrees. It may be
null
if no bypass user is needed.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetToBeDeletedRequest(@NotNull java.lang.String subtreeBaseDN, @NotNull java.lang.String bypassUserDN, @Nullable Control... controls)
subtreeBaseDN
- The base DN for the subtree to mark as
to-be-deleted. It must not be null
.bypassUserDN
- The DN of a user that will be allowed to perform
write (add, delete, modify, and modify DN)
operations in the specified subtree. It must not be
null
.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public static SetSubtreeAccessibilityExtendedRequest createSetToBeDeletedRequest(@NotNull java.util.Collection<java.lang.String> subtreeBaseDNs, @NotNull java.lang.String bypassUserDN, @Nullable Control... controls)
subtreeBaseDNs
- The base DNs for the subtrees to make hidden. It
must not be null
or empty. If multiple
base DNs are specified, then all must reside below
the same backend base DN.bypassUserDN
- The DN of a user that will be allowed to perform
write (add, delete, modify, and modify DN)
operations in the specified subtrees. It must not
be null
.controls
- The set of controls to include in the request. It
may be null
or empty if no controls are
needed.@NotNull public java.lang.String getSubtreeBaseDN()
getSubtreeBaseDNs()
method should be used to get the complete set
of target subtree base DNs.@NotNull public java.util.List<java.lang.String> getSubtreeBaseDNs()
@NotNull public SubtreeAccessibilityState getAccessibilityState()
@Nullable public java.lang.String getBypassUserDN()
null
if there are no restrictions to be imposed on the
target subtrees or if no bypass user is defined for those
subtrees.@NotNull public SetSubtreeAccessibilityExtendedRequest duplicate()
duplicate
in interface ReadOnlyLDAPRequest
duplicate
in class ExtendedRequest
@NotNull public SetSubtreeAccessibilityExtendedRequest duplicate(@Nullable Control[] controls)
duplicate
in interface ReadOnlyLDAPRequest
duplicate
in class ExtendedRequest
controls
- The set of controls to include in the duplicate request.@NotNull public java.lang.String getExtendedRequestName()
getExtendedRequestName
in class ExtendedRequest
public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface ProtocolOp
toString
in interface ReadOnlyLDAPRequest
toString
in class ExtendedRequest
buffer
- The buffer to which to append a string representation of
this request.