public final class ReplicatedRequestControl extends Object 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.
|
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 |
getOid()
Returns the numeric OID associated with this control.
|
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. |
boolean |
isCritical()
Returns
true if it is unacceptable to perform the operation
without applying the semantics of this control. |
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 . |
String |
toString() |
public static final String OID
public static final ControlDecoder<ReplicatedRequestControl> 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 String getOid()
Control
public AddContext toAddContext()
AddContext
.public DeleteContext toDeleteContext()
DeleteContext
.public ModifyContext toModifyContext()
ModifyContext
.public ModifyDnContext toModifyDNContext()
ModifyDnContext
.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 CSN getCSN()
null
CSNpublic String getEntryUuid()
null
entry UUIDpublic String getParentUuid()
public 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.