Package org.ldaptive
Class ModifyDnRequest
- java.lang.Object
-
- org.ldaptive.AbstractRequest
-
- org.ldaptive.ModifyDnRequest
-
- All Implemented Interfaces:
Message<RequestControl>
,Request
public class ModifyDnRequest extends AbstractRequest
Contains the data required to perform an ldap modify dn operation.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
deleteOldRDn
Whether to delete the old RDN attribute.private String
newModifyDn
New DN.private String
oldModifyDn
DN to modify.
-
Constructor Summary
Constructors Constructor Description ModifyDnRequest()
Default constructor.ModifyDnRequest(String oldDn, String newDn)
Creates a new modify dn request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDeleteOldRDn()
Returns whether to delete the old RDN attribute.String
getDn()
Returns the DN to modify.String
getNewDn()
Returns the new DN.void
setDeleteOldRDn(boolean b)
Sets whether to delete the old RDN attribute.void
setDn(String dn)
Sets the DN to modify.void
setNewDn(String dn)
Sets the new DN.String
toString()
-
Methods inherited from class org.ldaptive.AbstractRequest
getControls, getIntermediateResponseHandlers, getReferralHandler, setControls, setIntermediateResponseHandlers, setReferralHandler
-
-
-
-
Method Detail
-
getDn
public String getDn()
Returns the DN to modify.- Returns:
- DN
-
setDn
public void setDn(String dn)
Sets the DN to modify.- Parameters:
dn
- to modify
-
getNewDn
public String getNewDn()
Returns the new DN.- Returns:
- DN
-
setNewDn
public void setNewDn(String dn)
Sets the new DN.- Parameters:
dn
- to rename to
-
getDeleteOldRDn
public boolean getDeleteOldRDn()
Returns whether to delete the old RDN attribute.- Returns:
- whether to delete the old RDN attribute
-
setDeleteOldRDn
public void setDeleteOldRDn(boolean b)
Sets whether to delete the old RDN attribute.- Parameters:
b
- whether to delete the old RDN attribute
-
-