public final class InternalModificationsRequestControl extends Control implements org.forgerock.opendj.ldap.controls.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.
|
static org.forgerock.opendj.ldap.controls.ControlDecoder<InternalModificationsRequestControl> |
SDK_DECODER
The Control Decoder that can be used to decode this control.
|
Constructor and Description |
---|
InternalModificationsRequestControl(boolean isCritical,
String origin,
List<org.forgerock.opendj.ldap.Modification> mods)
Constructs a new control.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<org.forgerock.opendj.ldap.Modification> |
getModifications()
Returns the modifications to perform.
|
String |
getOrigin()
Returns the origin of the modifications.
|
org.forgerock.opendj.ldap.ByteString |
getValue() |
int |
hashCode() |
boolean |
hasValue() |
protected void |
writeValue(org.forgerock.opendj.io.Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
getOid, isCritical, toString, toString, write
public static final String OID
public static final ControlDecoder<InternalModificationsRequestControl> DECODER
public static final org.forgerock.opendj.ldap.controls.ControlDecoder<InternalModificationsRequestControl> SDK_DECODER
public InternalModificationsRequestControl(boolean isCritical, String origin, List<org.forgerock.opendj.ldap.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 org.forgerock.opendj.ldap.ByteString getValue()
getValue
in interface org.forgerock.opendj.ldap.controls.Control
protected void writeValue(org.forgerock.opendj.io.Asn1Writer writer) throws IOException
Control
writeValue
in class Control
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the
stream.public boolean hasValue()
hasValue
in interface org.forgerock.opendj.ldap.controls.Control
public List<org.forgerock.opendj.ldap.Modification> getModifications()
null
modificationspublic String getOrigin()
null
origin of the modificationsCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.