|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
org.apache.directory.api.dsmlv2.request.AbstractRequestDsml<E>
org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml<ModifyDnRequest,ModifyDnResponse>
org.apache.directory.api.dsmlv2.request.ModifyDNRequestDsml
public class ModifyDNRequestDsml
DSML Decorator for ModifyDNRequest
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.api.ldap.model.message.ModifyDnRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
ModifyDNRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of ModifyDNRequestDsml. |
|
ModifyDNRequestDsml(LdapApiService codec,
ModifyDnRequest ldapMessage)
Creates a new getDecoratedMessage() of ModifyDNRequestDsml. |
|
| 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 |
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()
Get the modification's Dn |
Rdn |
getNewRdn()
Gets the new relative distinguished name for the entry which represents the PDU's newrdn field. |
Rdn |
getNewRDN()
Get the new Rdn |
Dn |
getNewSuperior()
Get the newSuperior |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces at least one response. |
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message. |
boolean |
isDeleteOldRDN()
Tells if the old Rdn is to be deleted |
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. |
void |
setDeleteOldRDN(boolean deleteOldRDN)
Set the flag to delete the old Rdn |
void |
setEntry(Dn name)
Set the modification Dn. |
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. |
void |
setNewRDN(Rdn newRdn)
Set the new Rdn |
ModifyDnRequest |
setNewSuperior(Dn newSuperior)
Set the new superior |
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls. |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml |
|---|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractRequestDsml |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator |
|---|
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| 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, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public ModifyDNRequestDsml(LdapApiService codec)
public ModifyDNRequestDsml(LdapApiService codec,
ModifyDnRequest ldapMessage)
ldapMessage - the message to decorate| Method Detail |
|---|
public MessageTypeEnum getType()
getType in interface MessagegetType in class AbstractDsmlMessageDecorator<ModifyDnRequest>public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<ModifyDnRequest>toDsml in class AbstractResultResponseRequestDsml<ModifyDnRequest,ModifyDnResponse>root - the root element
public Dn getName()
getName in interface ModifyDnRequestpublic void setEntry(Dn name)
name - The name to set.public boolean isDeleteOldRDN()
public void setDeleteOldRDN(boolean deleteOldRDN)
deleteOldRDN - The deleteOldRDN to set.public Rdn getNewRDN()
public void setNewRDN(Rdn newRdn)
newRdn - The newRdn to set.public Dn getNewSuperior()
getNewSuperior in interface ModifyDnRequestpublic ModifyDnRequest setNewSuperior(Dn newSuperior)
setNewSuperior in interface ModifyDnRequestnewSuperior - The newSuperior to set.
public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<ModifyDnResponse>public 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 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 ModifyDnRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface ModifyDnRequestsetMessageId in class AbstractDsmlMessageDecorator<ModifyDnRequest>messageId - The message Id
public ModifyDnRequest addControl(Control control)
throws MessageException
addControl in interface MessageaddControl in interface ModifyDnRequestaddControl in class AbstractDsmlMessageDecorator<ModifyDnRequest>control - 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 AbstractDsmlMessageDecorator<ModifyDnRequest>controls - 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 AbstractDsmlMessageDecorator<ModifyDnRequest>control - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||