public final class InternalModificationsRequestControl extends Object implements Control
Legacy ModifyDNOperation
class allow to provide modifications to perform along with the DN modification. As
it is not possible to do this with a ModifyDnRequest
, this control can be used for this purpose.
Modifier and Type | Field and Description |
---|---|
static ControlDecoder<InternalModificationsRequestControl> |
DECODER
The Control Decoder that can be used to decode this control.
|
static String |
OID
OID for the internal modifications control.
|
Constructor and Description |
---|
InternalModificationsRequestControl(boolean isCritical,
String origin,
List<Modification> mods)
Constructs a new control.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<Modification> |
getModifications()
Returns the modifications to perform.
|
String |
getOid()
Returns the numeric OID associated with this control.
|
String |
getOrigin()
Returns the origin of the modifications.
|
ByteString |
getValue()
Returns the value, if any, associated with this control.
|
int |
hashCode() |
boolean |
hasValue()
Returns
true if this control has a value. |
boolean |
isCritical()
Returns
true if it is unacceptable to perform the operation
without applying the semantics of this control. |
String |
toString() |
public static final String OID
public static final ControlDecoder<InternalModificationsRequestControl> DECODER
public InternalModificationsRequestControl(boolean isCritical, String origin, List<Modification> mods)
isCritical
- Indicates whether support for this control should be considered a critical part of the server
processing.origin
- the non-null
origin of the modifications.mods
- the non-null
modifications to perform.public String getOid()
Control
public ByteString getValue()
Control
public boolean hasValue()
Control
true
if this control has a value. In some circumstances
it may be useful to determine if a control has a value, without actually
calculating the value and incurring any performance costs.public List<Modification> getModifications()
null
modificationspublic String getOrigin()
null
origin of the modificationspublic boolean isCritical()
Control
true
if it is unacceptable to perform the operation
without applying the semantics of this control.
The criticality field only has meaning in controls attached to request
messages (except UnbindRequest). For controls attached to response
messages and the UnbindRequest, the criticality field SHOULD be
false
, and MUST be ignored by the receiving protocol peer. A
value of true
indicates that it is unacceptable to perform the
operation without applying the semantics of the control.
isCritical
in interface Control
true
if this control must be processed by the Directory
Server, or false
if it can be ignored.Copyright 2010-2022 ForgeRock AS.