|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.replication.protocol.ReplicationMessage
org.opends.server.replication.protocol.UpdateMessage
org.opends.server.replication.protocol.ModifyDNMsg
public class ModifyDNMsg
Message used to send Modify DN information.
| Constructor Summary | |
|---|---|
ModifyDNMsg(byte[] in)
Creates a new ModifyDN message from a byte[]. |
|
ModifyDNMsg(PostOperationModifyDNOperation operation)
construct a new Modify DN message. |
|
ModifyDNMsg(java.lang.String dn,
ChangeNumber changeNumber,
java.lang.String uid,
java.lang.String newParentUid,
boolean deleteOldRdn,
java.lang.String newSuperior,
java.lang.String newRDN)
construct a new Modify DN message. |
|
| Method Summary | |
|---|---|
AbstractOperation |
createOperation(InternalClientConnection connection,
java.lang.String newDn)
Create and Operation from the message using the provided DN. |
byte[] |
getBytes()
Get the byte array representation of this Message. |
java.lang.String |
getNewRDN()
Get the new RDN of this operation. |
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 |
setNewRDN(java.lang.String newRDN)
Set the new RDN of this operation. |
void |
setNewSuperior(java.lang.String string)
Set the new superior. |
java.lang.String |
toString()
|
| Methods inherited from class org.opends.server.replication.protocol.UpdateMessage |
|---|
compareTo, createOperation, decodeHeader, encodeHeader, equals, generateMsg, getChangeNumber, getDn, getUniqueId, hashCode, isAssured, setAssured, setDn |
| Methods inherited from class org.opends.server.replication.protocol.ReplicationMessage |
|---|
addByteArray, generateMsg, getNextLength |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModifyDNMsg(PostOperationModifyDNOperation operation)
operation - The operation to use for building the message
public ModifyDNMsg(java.lang.String dn,
ChangeNumber changeNumber,
java.lang.String uid,
java.lang.String newParentUid,
boolean deleteOldRdn,
java.lang.String newSuperior,
java.lang.String newRDN)
dn - The dn to use for building the message.changeNumber - The changeNumberto use for building the message.uid - The unique id to use for building the message.newParentUid - 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(byte[] in)
throws java.util.zip.DataFormatException,
java.io.UnsupportedEncodingException
in - The byte[] from which the operation must be read.
java.util.zip.DataFormatException - The input byte[] is not a valid AddMsg.
java.io.UnsupportedEncodingException - If UTF8 is not supported.| Method Detail |
|---|
public AbstractOperation createOperation(InternalClientConnection connection,
java.lang.String newDn)
createOperation in class UpdateMessageconnection - connection to use when creating the message.newDn - the DN to use when creating the operation.
public byte[] getBytes()
throws java.io.UnsupportedEncodingException
getBytes in class ReplicationMessagejava.io.UnsupportedEncodingException - When the encoding of the message
failed because the UTF-8 encoding is not supported.public java.lang.String toString()
toString in class java.lang.Objectpublic void setNewSuperior(java.lang.String string)
string - the new superior.public java.lang.String getNewRDN()
public void setNewRDN(java.lang.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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||