@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class OverrideSearchLimitsRequestControl 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
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.
true
or false
, and a value with the provided encoding:
that contains a mapping of one or
more case-sensitive property-value pairs. Property names will be treated in
a case-sensitive manner.
the following encoding:
OverrideSearchLimitsRequestValue ::= SEQUENCE OF SEQUENCE { propertyName OCTET STRING, propertyValue OCTET STRING }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OVERRIDE_SEARCH_LIMITS_REQUEST_OID
The OID (1.3.6.1.4.1.30221.2.5.56) for the override search limits request
control.
|
Constructor and Description |
---|
OverrideSearchLimitsRequestControl(Control control)
Creates a new instance of this override search limits request control that
is decoded from the provided generic control.
|
OverrideSearchLimitsRequestControl(java.util.Map<java.lang.String,java.lang.String> properties,
boolean isCritical)
Creates a new instance of this override search limits request control with
the provided set of properties.
|
OverrideSearchLimitsRequestControl(java.lang.String propertyName,
java.lang.String propertyValue)
Creates a new instance of this override search limits request control with
the specified property name and value.
|
Modifier and Type | Method and Description |
---|---|
static OverrideSearchLimitsRequestControl |
decodeJSONControl(JSONObject controlObject,
boolean strict)
Attempts to decode the provided object as a JSON representation of an
override search limits request control.
|
java.lang.String |
getControlName()
Retrieves the user-friendly name for this control, if available.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Retrieves a map of the properties included in this request control.
|
java.lang.String |
getProperty(java.lang.String propertyName)
Retrieves the value of the specified property.
|
java.lang.Boolean |
getPropertyAsBoolean(java.lang.String propertyName,
java.lang.Boolean defaultValue)
Retrieves the value of the specified property as a
Boolean . |
java.lang.Integer |
getPropertyAsInteger(java.lang.String propertyName,
java.lang.Integer defaultValue)
Retrieves the value of the specified property as an
Integer . |
java.lang.Long |
getPropertyAsLong(java.lang.String propertyName,
java.lang.Long defaultValue)
Retrieves the value of the specified property as a
Long . |
JSONObject |
toJSONControl()
Retrieves a representation of this override search limits request control
as a JSON object.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP control to the provided
buffer.
|
decode, decode, decodeControls, decodeJSONControl, deregisterDecodeableControl, encode, encodeControls, equals, getOID, getValue, hashCode, hasValue, isCritical, readFrom, registerDecodeableControl, registerDecodeableControl, toString, writeTo
@NotNull public static final java.lang.String OVERRIDE_SEARCH_LIMITS_REQUEST_OID
public OverrideSearchLimitsRequestControl(@NotNull java.lang.String propertyName, @NotNull java.lang.String propertyValue)
propertyName
- The name of the property to set. It must not be
null
or empty.propertyValue
- The value for the specified property. It must not
be null
or empty.public OverrideSearchLimitsRequestControl(@NotNull java.util.Map<java.lang.String,java.lang.String> properties, boolean isCritical)
properties
- The map of properties to set in this control. It must
not be null
or empty, and none of the keys or
values inside it may be null
or empty.isCritical
- Indicates whether the control should be considered
critical.public OverrideSearchLimitsRequestControl(@NotNull Control control) throws LDAPException
control
- The generic control to decode as an override search limits
request control. It must not be null
.LDAPException
- If the provided control cannot be decoded as an
override search limits request control.@NotNull public java.util.Map<java.lang.String,java.lang.String> getProperties()
@Nullable public java.lang.String getProperty(@NotNull java.lang.String propertyName)
propertyName
- The name of the property for which to retrieve the
value. It must not be null
or empty, and it
will be treated in a case-sensitive manner.null
if the
property is not set in the control.@Nullable public java.lang.Boolean getPropertyAsBoolean(@NotNull java.lang.String propertyName, @Nullable java.lang.Boolean defaultValue)
Boolean
.propertyName
- The name of the property for which to retrieve the
value. It must not be null
or empty, and it
will be treated in a case-sensitive manner.defaultValue
- The default value that will be used if the requested
property is not set or if its value cannot be parsed
as a Boolean
. It may be null
if the
default value should be null
.Boolean
.@Nullable public java.lang.Integer getPropertyAsInteger(@NotNull java.lang.String propertyName, @Nullable java.lang.Integer defaultValue)
Integer
.propertyName
- The name of the property for which to retrieve the
value. It must not be null
or empty, and it
will be treated in a case-sensitive manner.defaultValue
- The default value that will be used if the requested
property is not set or if its value cannot be parsed
as an Integer
. It may be null
if the
default value should be null
.Integer
.@Nullable public java.lang.Long getPropertyAsLong(@NotNull java.lang.String propertyName, @Nullable java.lang.Long defaultValue)
Long
.propertyName
- The name of the property for which to retrieve the
value. It must not be null
or empty, and it
will be treated in a case-sensitive manner.defaultValue
- The default value that will be used if the requested
property is not set or if its value cannot be parsed
as an Long
. It may be null
if the
default value should be null
.Long
.@NotNull public java.lang.String getControlName()
getControlName
in class Control
@NotNull public JSONObject toJSONControl()
oid
-- A mandatory string field whose value is the object
identifier for this control. For the override search limits request
control, the OID is "1.3.6.1.4.1.30221.2.5.56".
control-name
-- An optional string field whose value is a
human-readable name for this control. This field is only intended for
descriptive purposes, and when decoding a control, the oid
field should be used to identify the type of control.
criticality
-- A mandatory Boolean field used to indicate
whether this control is considered critical.
value-base64
-- An optional string field whose value is a
base64-encoded representation of the raw value for this override search
limits request control. Exactly one of the value-base64
and
value-json
fields must be present.
value-json
-- An optional JSON object field whose value is a
user-friendly representation of the value for this override search
limits request control. Exactly one of the value-base64
and
value-json
fields must be present, and if the
value-json
field is used, then it will use the following
fields:
properties
-- A mandatory array field whose values are
JSON objects with the properties to use for this control. Each of
these JSON objects uses the following fields:
name
-- A mandatory string field whose value is the
property name.
value
-- A mandatory string field whose value is the
property value.
toJSONControl
in class Control
@NotNull public static OverrideSearchLimitsRequestControl decodeJSONControl(@NotNull JSONObject controlObject, boolean strict) throws LDAPException
controlObject
- The JSON object to be decoded. It must not be
null
.strict
- Indicates whether to use strict mode when decoding
the provided JSON object. If this is true
,
then this method will throw an exception if the
provided JSON object contains any unrecognized
fields. If this is false
, then unrecognized
fields will be ignored.LDAPException
- If the provided JSON object cannot be parsed as a
valid override search limits request control.