public abstract class ModifyCommonMsg extends LDAPUpdateMsg
Modifier and Type | Field and Description |
---|---|
protected byte[] |
encodedMods
The modifications kept encoded in the message.
|
bytes, dn, encodedEclIncludes, entryUUID
assuredFlag, assuredMode, csn, protocolVersion, safeDataLevel
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ModifyCommonMsg()
Creates a new ModifyCommonMsg.
|
ModifyCommonMsg(CSN csn,
String entryUUID,
org.forgerock.opendj.ldap.Dn dn)
Creates a new ModifyCommonMsg with the given informations.
|
ModifyCommonMsg(OperationContext ctx,
org.forgerock.opendj.ldap.Dn dn)
Creates a new ModifyCommonMsg with the given informations.
|
Modifier and Type | Method and Description |
---|---|
protected List<Modification> |
decodeMods(byte[] in)
Decode mods from the provided byte array.
|
protected List<RawModification> |
decodeRawMods(byte[] in)
Decode raw mods from the provided byte array.
|
protected byte[] |
encodeMods(List<Modification> mods)
Encode an ArrayList of Modification into a byte[] suitable
for storage in a database or send on the network.
|
List<Modification> |
getMods()
Get the Modifications associated to the UpdateMsg to the provided value.
|
void |
setMods(List<Modification> mods)
Set the Modification associated to the UpdateMsg to the provided value.
|
createRequest, createRequest, encode, encodeHeader, generateMsg, getBytes_V1, getBytes_V23, getBytes_V45, getBytes, getDN, getEclIncludes, getEntryUUID, headerSize, setDN, setEclIncludes, size
compareTo, contributesToDomainState, decodeHeader, equals, getAssuredMode, getBytes, getCSN, getPayload, getSafeDataLevel, getVersion, hashCode, isAssured, setAssured, setAssuredMode, setSafeDataLevel
generateMsg
protected byte[] encodedMods
public ModifyCommonMsg()
public ModifyCommonMsg(OperationContext ctx, org.forgerock.opendj.ldap.Dn dn)
ctx
- The replication Context of the operation for which the
update message must be created,.dn
- The DN of the entry on which the change
that caused the creation of this object happenedpublic ModifyCommonMsg(CSN csn, String entryUUID, org.forgerock.opendj.ldap.Dn dn)
csn
- The CSN of the operation for which the
UpdateMessage is created.entryUUID
- The Unique identifier of the entry that is updated
by the operation for which the UpdateMessage is created.dn
- The DN of the entry on which the change
that caused the creation of this object happenedpublic void setMods(List<Modification> mods)
mods
- The new Modification associated to this ModifyMsg.public List<Modification> getMods() throws IOException, LDAPException
LDAPException
- In case of LDAP decoding exceptionIOException
- In case of ASN1 decoding exceptionprotected byte[] encodeMods(List<Modification> mods)
mods
- the ArrayList of Modification to be encoded.protected List<Modification> decodeMods(byte[] in) throws IOException, LDAPException
in
- The provided byte array.IOException
- when occurs.LDAPException
- when occurs.protected List<RawModification> decodeRawMods(byte[] in) throws LDAPException, IOException
in
- The provided byte array.IOException
- when occurs.LDAPException
- when occurs.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.