public final class ReplicatedRequestControl extends Control implements Control
The replication context provides a CSN, an entry UUID and an additional UUID.
Note: the use of this control was the fastest way to make things work. This should be only a temporary solution until we find a better way to handle this. To get a better idea of the issue:
Modifier and Type | Field and Description |
---|---|
static ControlDecoder<ReplicatedRequestControl> |
DECODER
The Control Decoder that can be used to decode this control.
|
static String |
OID
OID of the replication context control.
|
static ControlDecoder<ReplicatedRequestControl> |
SDK_DECODER
The Control Decoder that can be used to decode this control.
|
Constructor and Description |
---|
ReplicatedRequestControl(boolean isCritical,
CSN csn,
String entryUuid)
Constructs a new control.
|
ReplicatedRequestControl(boolean isCritical,
CSN csn,
String entryUuid,
String parentUuid)
Constructs a new control.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CSN |
getCSN()
Returns the CSN.
|
String |
getEntryUuid()
Returns the entry UUID.
|
String |
getParentUuid()
Returns the additional UUID.
|
ByteString |
getValue()
Returns the value, if any, associated with this control.
|
int |
hashCode() |
boolean |
hasValue()
Returns
true if this control has a value. |
AddContext |
toAddContext()
Convert this control to an
AddContext . |
DeleteContext |
toDeleteContext()
Convert this control to a
DeleteContext . |
ModifyContext |
toModifyContext()
Convert this control to a
ModifyContext . |
ModifyDnContext |
toModifyDNContext()
Convert this control to a
ModifyDnContext . |
protected void |
writeValue(Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
getOid, getValueAdapter, isCritical, toString, toString, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical
public static final String OID
public static final ControlDecoder<ReplicatedRequestControl> DECODER
public static final ControlDecoder<ReplicatedRequestControl> SDK_DECODER
public ReplicatedRequestControl(boolean isCritical, CSN csn, String entryUuid, String parentUuid)
isCritical
- Indicates whether support for this control should be considered a critical part of the server
processing.csn
- the non-null
CSN.entryUuid
- the non-null
UUID of the entry.parentUuid
- the parent UUID that may be provided for Add and ModifyDN requestspublic ReplicatedRequestControl(boolean isCritical, CSN csn, String entryUuid)
isCritical
- Indicates whether support for this control should be considered a critical part of the server
processing.csn
- the non-null
CSN.entryUuid
- the non-null
UUID of the entry.public AddContext toAddContext()
AddContext
.public DeleteContext toDeleteContext()
DeleteContext
.public ModifyContext toModifyContext()
ModifyContext
.public ModifyDnContext toModifyDNContext()
ModifyDnContext
.public ByteString getValue()
Control
protected void writeValue(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()
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 CSN getCSN()
null
CSNpublic String getEntryUuid()
null
entry UUIDpublic String getParentUuid()
Copyright 2010-2020 ForgeRock AS.