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.
|
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.
|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandonedhasResponseget, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, putclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultResponsehasResponseget, getControl, getControls, getMessageId, hasControl, putabandon, addAbandonListener, isAbandonedpublic ModifyDNRequestDsml(LdapApiService codec)
public ModifyDNRequestDsml(LdapApiService codec, ModifyDnRequest ldapMessage)
ldapMessage - the message to decoratepublic 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 elementpublic 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 SingleReplyRequestpublic 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 componentpublic 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 notpublic boolean isMove()
isMove in interface ModifyDnRequestpublic ModifyDnRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface ModifyDnRequestsetMessageId in class AbstractDsmlMessageDecorator<ModifyDnRequest>messageId - The message Idpublic ModifyDnRequest addControl(Control control)
addControl in interface MessageaddControl in interface ModifyDnRequestaddControl in class AbstractDsmlMessageDecorator<ModifyDnRequest>control - the control to add.public ModifyDnRequest addAllControls(Control[] controls)
addAllControls in interface MessageaddAllControls in interface ModifyDnRequestaddAllControls in class AbstractDsmlMessageDecorator<ModifyDnRequest>controls - the controls to add.public ModifyDnRequest removeControl(Control control)
removeControl in interface MessageremoveControl in interface ModifyDnRequestremoveControl in class AbstractDsmlMessageDecorator<ModifyDnRequest>control - the control to remove.Copyright © 2021. All rights reserved.