public class ModifyMsg extends ModifyCommonMsg
encodedMods
bytes, dn, encodedEclIncludes, entryUUID
assuredFlag, assuredMode, csn, protocolVersion, safeDataLevel
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ModifyMsg(CSN csn,
org.forgerock.opendj.ldap.Dn dn,
List<Modification> mods,
String entryUUID)
Creates a new Modify message using the provided information.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.messages.ModifyRequest |
createRequest(org.forgerock.opendj.ldap.Dn newDN)
Create a request from this message using the provided DN.
|
byte[] |
getBytes_V1()
Get the byte array representation of this message.
|
byte[] |
getBytes_V23()
Get the byte array representation of this message.
|
byte[] |
getBytes_V45(short protocolVersion)
Get the byte array representation of this message.
|
int |
size()
Return the number of bytes used by this message.
|
String |
toString() |
decodeMods, decodeRawMods, encodeMods, getMods, setMods
createRequest, encode, encodeHeader, generateMsg, getBytes, getDN, getEclIncludes, getEntryUUID, headerSize, setDN, setEclIncludes
compareTo, contributesToDomainState, decodeHeader, equals, getAssuredMode, getBytes, getCSN, getPayload, getSafeDataLevel, getVersion, hashCode, isAssured, setAssured, setAssuredMode, setSafeDataLevel
generateMsg
public ModifyMsg(CSN csn, org.forgerock.opendj.ldap.Dn dn, List<Modification> mods, String entryUUID)
csn
- The CSN for the operation.dn
- The baseDN of the operation.mods
- The mod of the operation.entryUUID
- The unique id of the entry on which the modification
needs to apply.public org.forgerock.opendj.ldap.messages.ModifyRequest createRequest(org.forgerock.opendj.ldap.Dn newDN) throws LDAPException, IOException
LDAPUpdateMsg
createRequest
in class LDAPUpdateMsg
newDN
- the DN to use when creating the request.LDAPException
- In case of LDAP decoding exceptionIOException
- In case of ASN1 decoding exceptionpublic int size()
UpdateMsg
size
in class LDAPUpdateMsg
public byte[] getBytes_V1()
LDAPUpdateMsg
getBytes_V1
in class LDAPUpdateMsg
public byte[] getBytes_V23()
LDAPUpdateMsg
getBytes_V23
in class LDAPUpdateMsg
public byte[] getBytes_V45(short protocolVersion)
LDAPUpdateMsg
getBytes_V45
in class LDAPUpdateMsg
protocolVersion
- the actual protocol version to encode intoCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.