@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ExcludeBranchRequestControl extends Control
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 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.
true
or false
.
It must have a value with the following encoding:
ExcludeBranchRequest ::= SEQUENCE { baseDNs [0] SEQUENCE OF LDAPDN, ... }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCLUDE_BRANCH_REQUEST_OID
The OID (1.3.6.1.4.1.30221.2.5.17) for the exclude branch request control.
|
Constructor and Description |
---|
ExcludeBranchRequestControl(boolean isCritical,
java.util.Collection<java.lang.String> baseDNs)
Creates a new exclude branch request control with the provided information.
|
ExcludeBranchRequestControl(boolean isCritical,
java.lang.String... baseDNs)
Creates a new exclude branch request control with the provided information.
|
ExcludeBranchRequestControl(java.util.Collection<java.lang.String> baseDNs)
Creates a new exclude branch request control with the provided set of base
DNs.
|
ExcludeBranchRequestControl(Control control)
Creates a new exclude branch request control which is decoded from the
provided generic control.
|
ExcludeBranchRequestControl(java.lang.String... baseDNs)
Creates a new exclude branch request control with the provided set of base
DNs.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getBaseDNs()
Retrieves a list of the base DNs for entries to exclude from the search
results.
|
java.lang.String |
getControlName()
Retrieves the user-friendly name for this control, if available.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP control to the provided
buffer.
|
decode, decode, decodeControls, deregisterDecodeableControl, encode, encodeControls, equals, getOID, getValue, hashCode, hasValue, isCritical, readFrom, registerDecodeableControl, toString, writeTo
public static final java.lang.String EXCLUDE_BRANCH_REQUEST_OID
public ExcludeBranchRequestControl(java.util.Collection<java.lang.String> baseDNs)
baseDNs
- The base DNs for entries to be excluded from search
results. It must not be null
or empty.public ExcludeBranchRequestControl(java.lang.String... baseDNs)
baseDNs
- The base DNs for entries to be excluded from search
results. It must not be null
or empty.public ExcludeBranchRequestControl(boolean isCritical, java.lang.String... baseDNs)
isCritical
- Indicates whether the control should be marked
critical.baseDNs
- The base DNs for entries to be excluded from search
results. It must not be null
or empty.public ExcludeBranchRequestControl(boolean isCritical, java.util.Collection<java.lang.String> baseDNs)
isCritical
- Indicates whether the control should be marked
critical.baseDNs
- The base DNs for entries to be excluded from search
results. It must not be null
or empty.public ExcludeBranchRequestControl(Control control) throws LDAPException
control
- The generic control to be decoded as an exclude branch
request control.LDAPException
- If the provided control cannot be decoded as an
exclude branch request control.public java.util.List<java.lang.String> getBaseDNs()
public java.lang.String getControlName()
getControlName
in class Control