public class ModifyDnRequestImpl extends AbstractAbandonableRequest implements ModifyDnRequest
Constructor and Description |
---|
ModifyDnRequestImpl()
Creates a ModifyDnRequest implementing object used to perform a
dn change on an entry potentially resulting in an entry move.
|
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 |
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
|
abandon, addAbandonListener, isAbandoned
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
abandon, addAbandonListener, isAbandoned
public ModifyDnRequestImpl()
public 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 Dn getName()
getName
in interface ModifyDnRequest
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 Dn getNewSuperior()
getNewSuperior
in interface ModifyDnRequest
public ModifyDnRequest setNewSuperior(Dn newSuperior)
isMove
method.setNewSuperior
in interface ModifyDnRequest
newSuperior
- the dn of the superior entry the candidate entry for Dn
modification is moved under.public ModifyDnRequest setMessageId(int messageId)
setMessageId
in interface Message
setMessageId
in interface ModifyDnRequest
setMessageId
in class AbstractMessage
messageId
- The message Idpublic ModifyDnRequest addControl(Control control)
addControl
in interface Message
addControl
in interface ModifyDnRequest
addControl
in class AbstractMessage
control
- the control to add.public ModifyDnRequest addAllControls(Control[] controls)
addAllControls
in interface Message
addAllControls
in interface ModifyDnRequest
addAllControls
in class AbstractMessage
controls
- the controls to add.public ModifyDnRequest removeControl(Control control)
removeControl
in interface Message
removeControl
in interface ModifyDnRequest
removeControl
in class AbstractMessage
control
- the control to remove.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public ModifyDnResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
public int hashCode()
hashCode
in class AbstractRequest
Object.hashCode()
public boolean equals(Object obj)
equals
in class AbstractRequest
obj
- the object to compare with this stubCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.