public class ModifyDNRequestDsml extends AbstractResultResponseRequestDsml<ModifyDnRequest,ModifyDnResponse> implements ModifyDnRequest
Constructor and Description |
---|
ModifyDNRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of ModifyDNRequestDsml.
|
ModifyDNRequestDsml(LdapApiService codec,
ModifyDnRequest ldapMessage)
Creates a new getDecoratedMessage() of ModifyDNRequestDsml.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
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.
|
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.
|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned
hasResponse
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, hasControl, put
abandon, addAbandonListener, isAbandoned
public ModifyDNRequestDsml(LdapApiService codec)
codec
- The LDAP Service to usepublic ModifyDNRequestDsml(LdapApiService codec, ModifyDnRequest ldapMessage)
codec
- The LDAP Service to useldapMessage
- the message to decoratepublic MessageTypeEnum getType()
getType
in interface Message
getType
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 elementpublic Dn getName()
getName
in interface ModifyDnRequest
public boolean isDeleteOldRDN()
public Dn getNewSuperior()
getNewSuperior
in interface ModifyDnRequest
public ModifyDnRequest setNewSuperior(Dn newSuperior)
setNewSuperior
in interface ModifyDnRequest
newSuperior
- The newSuperior to set.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public ModifyDnRequest setName(Dn name)
setName
in interface ModifyDnRequest
name
- the distinguished name of the entry.public Rdn getNewRdn()
getNewRdn
in interface ModifyDnRequest
public ModifyDnRequest setNewRdn(Rdn newRdn)
setNewRdn
in interface ModifyDnRequest
newRdn
- the relative dn with one componentpublic boolean getDeleteOldRdn()
getDeleteOldRdn
in interface ModifyDnRequest
public ModifyDnRequest setDeleteOldRdn(boolean deleteOldRdn)
setDeleteOldRdn
in interface ModifyDnRequest
deleteOldRdn
- true if the old rdn is to be deleted, false if it is notpublic boolean isMove()
isMove
in interface ModifyDnRequest
public ModifyDnRequest setMessageId(int messageId)
setMessageId
in interface Message
setMessageId
in interface ModifyDnRequest
setMessageId
in class AbstractDsmlMessageDecorator<ModifyDnRequest>
messageId
- The message Idpublic ModifyDnRequest addControl(Control control)
addControl
in interface Message
addControl
in interface ModifyDnRequest
addControl
in class AbstractDsmlMessageDecorator<ModifyDnRequest>
control
- the control to add.public ModifyDnRequest addAllControls(Control[] controls)
addAllControls
in interface Message
addAllControls
in interface ModifyDnRequest
addAllControls
in class AbstractDsmlMessageDecorator<ModifyDnRequest>
controls
- the controls to add.public ModifyDnRequest removeControl(Control control)
removeControl
in interface Message
removeControl
in interface ModifyDnRequest
removeControl
in class AbstractDsmlMessageDecorator<ModifyDnRequest>
control
- the control to remove.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.