public class ModifyDNMsg extends ModifyCommonMsg
encodedModsbytes, dn, encodedEclIncludes, entryUUIDassuredFlag, assuredMode, csn, protocolVersion, safeDataLevel| Constructor and Description |
|---|
ModifyDNMsg(DN dn,
CSN csn,
String entryUUID,
String newSuperiorEntryUUID,
boolean deleteOldRdn,
String newSuperior,
String newRDN)
Construct a new Modify DN message (no mods).
|
ModifyDNMsg(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 |
|---|---|
ModifyDNOperation |
createOperation(InternalClientConnection connection,
DN newDN)
Create and Operation from the 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(DN targetDN)
Check if the new dn of this ModifyDNMsg is the same as the targetDN
given in parameter.
|
boolean |
newDNIsParent(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(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, setModscreateOperation, encode, encodeHeader, generateMsg, getBytes, getDN, getEclIncludes, getEntryUUID, headerSize, setDN, setEclIncludescompareTo, contributesToDomainState, decodeHeader, equals, getAssuredMode, getBytes, getCSN, getPayload, getSafeDataLevel, getVersion, hashCode, isAssured, setAssured, setAssuredMode, setSafeDataLevelgenerateMsgpublic ModifyDNMsg(PostOperationModifyDNOperation operation)
operation - The operation to use for building the messagepublic ModifyDNMsg(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(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 ModifyDNOperation createOperation(InternalClientConnection connection, DN newDN) throws LDAPException, IOException
createOperation in class LDAPUpdateMsgconnection - connection to use when creating the message.newDN - the DN to use when creating the operation.LDAPException - In case of LDAP decoding exception.IOException - In case of ASN1 decoding exception.public byte[] getBytes_V1()
getBytes_V1 in class LDAPUpdateMsgpublic byte[] getBytes_V23()
getBytes_V23 in class LDAPUpdateMsgpublic byte[] getBytes_V45(short protocolVersion)
getBytes_V45 in class LDAPUpdateMsgprotocolVersion - 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(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(DN targetDN)
targetDN - The targetDN to use to check for equality.public boolean newParentIsEqual(DN targetDN)
targetDN - the targetDN to use when checking equality.public int size()
size in class LDAPUpdateMsgCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.