public class ModifyDNMsg extends ModifyCommonMsg
encodedMods
bytes, dn, encodedEclIncludes, entryUUID
assuredFlag, assuredMode, csn, protocolVersion, safeDataLevel
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ModifyDNMsg(org.forgerock.opendj.ldap.Dn dn,
CSN csn,
String entryUUID,
String newSuperiorEntryUUID,
boolean deleteOldRdn,
String newSuperior,
String newRDN)
Construct a new Modify DN message (no mods).
|
ModifyDNMsg(org.forgerock.opendj.ldap.Dn dn,
CSN csn,
String entryUUID,
String newSuperiorEntryUUID,
boolean deleteOldRdn,
String newSuperior,
String newRDN,
List<Modification> mods)
Construct a new Modify DN message (with mods).
|
ModifyDNMsg(PostOperationModifyDNOperation operation)
Construct a new Modify DN message.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.messages.ModifyDnRequest |
createRequest(org.forgerock.opendj.ldap.Dn newDN)
Create a request from this message using the provided DN.
|
boolean |
deleteOldRdn()
Get the delete old rdn option.
|
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.
|
boolean |
getDeleteOldRdn()
Get the delete old rdn option.
|
String |
getNewRDN()
Get the new RDN of this operation.
|
String |
getNewSuperior()
Get the new superior.
|
String |
getNewSuperiorEntryUUID()
Get the new superior id.
|
boolean |
newDNIsEqual(org.forgerock.opendj.ldap.Dn targetDN)
Check if the new dn of this ModifyDNMsg is the same as the targetDN
given in parameter.
|
boolean |
newDNIsParent(org.forgerock.opendj.ldap.Dn targetDn)
Check if this MSG will change the DN of the target entry to be
the same as the dn given as a parameter.
|
boolean |
newParentIsEqual(org.forgerock.opendj.ldap.Dn targetDN)
Check if the new parent of the modifyDNMsg is the same as the targetDN
given in parameter.
|
void |
setDeleteOldRdn(boolean delete)
Set the delete old rdn option.
|
void |
setNewRDN(String newRDN)
Set the new RDN of this operation.
|
void |
setNewSuperior(String string)
Set the new superior.
|
void |
setNewSuperiorEntryUUID(String newSup)
Set the new superior id.
|
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 ModifyDNMsg(PostOperationModifyDNOperation operation)
operation
- The operation to use for building the messagepublic ModifyDNMsg(org.forgerock.opendj.ldap.Dn dn, CSN csn, String entryUUID, String newSuperiorEntryUUID, boolean deleteOldRdn, String newSuperior, String newRDN)
dn
- The dn to use for building the message.csn
- The CSN to use for building the message.entryUUID
- The unique id to use for building the message.newSuperiorEntryUUID
- The new parent unique id to use for building
the message.deleteOldRdn
- boolean indicating if old rdn must be deleted to use
for building the message.newSuperior
- The new Superior entry to use for building the message.newRDN
- The new Rdn to use for building the message.public ModifyDNMsg(org.forgerock.opendj.ldap.Dn dn, CSN csn, String entryUUID, String newSuperiorEntryUUID, boolean deleteOldRdn, String newSuperior, String newRDN, List<Modification> mods)
dn
- The dn to use for building the message.csn
- The CSNto use for building the message.entryUUID
- The unique id to use for building the message.newSuperiorEntryUUID
- The new parent unique id to use for building
the message.deleteOldRdn
- boolean indicating if old rdn must be deleted to use
for building the message.newSuperior
- The new Superior entry to use for building the message.newRDN
- The new Rdn to use for building the message.mods
- The mod of the operation.public org.forgerock.opendj.ldap.messages.ModifyDnRequest 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 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 intopublic void setNewSuperior(String string)
string
- the new superior.public String getNewSuperior()
public String getNewSuperiorEntryUUID()
public boolean deleteOldRdn()
public void setNewSuperiorEntryUUID(String newSup)
newSup
- The new superior id.public void setDeleteOldRdn(boolean delete)
delete
- The delete old rdn option.public boolean getDeleteOldRdn()
public String getNewRDN()
public void setNewRDN(String newRDN)
newRDN
- the new RDN of this operation.public boolean newDNIsParent(org.forgerock.opendj.ldap.Dn targetDn)
targetDn
- the DN to use when checking if this MSG will change
the DN of the entry to a given DN.public boolean newDNIsEqual(org.forgerock.opendj.ldap.Dn targetDN)
targetDN
- The targetDN to use to check for equality.public boolean newParentIsEqual(org.forgerock.opendj.ldap.Dn targetDN)
targetDN
- the targetDN to use when checking equality.public int size()
UpdateMsg
size
in class LDAPUpdateMsg
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.