|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
org.apache.directory.api.ldap.model.message.ModifyDnRequestImpl
public class ModifyDnRequestImpl
ModifyDNRequest implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.ModifyDnRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
ModifyDnRequestImpl()
Creates a ModifyDnRequest implementing object used to perform a dn change on an entry potentially resulting in an entry move. |
|
| Method Summary | |
|---|---|
ModifyDnRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
ModifyDnRequest |
addControl(Control control)
Adds a control to this Message. |
boolean |
equals(Object obj)
Checks to see of an object equals this ModifyDnRequest stub. |
boolean |
getDeleteOldRdn()
Gets the flag which determines if the old Rdn attribute is to be removed from the entry when the new Rdn is used in its stead. |
Dn |
getName()
Gets the entry's distinguished name representing the entry PDU field. |
Rdn |
getNewRdn()
Gets the new relative distinguished name for the entry which represents the PDU's newrdn field. |
Dn |
getNewSuperior()
Gets the optional distinguished name of the new superior entry where the candidate entry is to be moved. |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces at least one response. |
ModifyDnResponse |
getResultResponse()
The result containing response for this request. |
int |
hashCode()
|
boolean |
isMove()
Gets whether or not this request is a Dn change resulting in a move operation. |
ModifyDnRequest |
removeControl(Control control)
Deletes a control removing it from this Message. |
ModifyDnRequest |
setDeleteOldRdn(boolean deleteOldRdn)
Sets the flag which determines if the old Rdn attribute is to be removed from the entry when the new Rdn is used in its stead. |
ModifyDnRequest |
setMessageId(int messageId)
Sets the Message ID for this request |
ModifyDnRequest |
setName(Dn name)
Sets the entry's distinguished name representing the entry PDU field. |
ModifyDnRequest |
setNewRdn(Rdn newRdn)
Sets the new relative distinguished name for the entry which represents the PDU's newrdn field. |
ModifyDnRequest |
setNewSuperior(Dn newSuperior)
Sets the optional distinguished name of the new superior entry where the candidate entry is to be moved. |
String |
toString()
Get a String representation of a ModifyDNRequest |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public ModifyDnRequestImpl()
| Method Detail |
|---|
public boolean getDeleteOldRdn()
getDeleteOldRdn in interface ModifyDnRequestpublic ModifyDnRequest setDeleteOldRdn(boolean deleteOldRdn)
setDeleteOldRdn in interface ModifyDnRequestdeleteOldRdn - true if the old rdn is to be deleted, false if it is not
public boolean isMove()
isMove in interface ModifyDnRequestpublic Dn getName()
getName in interface ModifyDnRequestpublic ModifyDnRequest setName(Dn name)
setName in interface ModifyDnRequestname - the distinguished name of the entry.
public Rdn getNewRdn()
getNewRdn in interface ModifyDnRequestpublic ModifyDnRequest setNewRdn(Rdn newRdn)
setNewRdn in interface ModifyDnRequestnewRdn - the relative dn with one component
public Dn getNewSuperior()
getNewSuperior in interface ModifyDnRequestpublic ModifyDnRequest setNewSuperior(Dn newSuperior)
isMove method.
setNewSuperior in interface ModifyDnRequestnewSuperior - the dn of the superior entry the candidate entry for Dn
modification is moved under.
public ModifyDnRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface ModifyDnRequestsetMessageId in class AbstractMessagemessageId - The message Id
public ModifyDnRequest addControl(Control control)
throws MessageException
addControl in interface MessageaddControl in interface ModifyDnRequestaddControl in class AbstractMessagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public ModifyDnRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface MessageaddAllControls in interface ModifyDnRequestaddAllControls in class AbstractMessagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public ModifyDnRequest removeControl(Control control)
throws MessageException
removeControl in interface MessageremoveControl in interface ModifyDnRequestremoveControl in class AbstractMessagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<ModifyDnResponse>public ModifyDnResponse getResultResponse()
getResultResponse in interface ResultResponseRequest<ModifyDnResponse>public int hashCode()
hashCode in class AbstractRequestObject.hashCode()public boolean equals(Object obj)
equals in class AbstractRequestobj - the object to compare with this stub
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||