org.ldaptive
Class ModifyDnRequest

java.lang.Object
  extended by org.ldaptive.AbstractRequest
      extended by 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.

Version:
$Revision: 3062 $ $Date: 2014-09-11 15:51:30 -0400 (Thu, 11 Sep 2014) $
Author:
Middleware Services

Constructor Summary
ModifyDnRequest()
          Default constructor.
ModifyDnRequest(String oldDn, String newDn)
          Creates a new modify dn request.
 
Method Summary
 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, getFollowReferrals, getIntermediateResponseHandlers, setControls, setFollowReferrals, setIntermediateResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyDnRequest

public ModifyDnRequest()
Default constructor.


ModifyDnRequest

public ModifyDnRequest(String oldDn,
                       String newDn)
Creates a new modify dn request.

Parameters:
oldDn - to modify
newDn - to rename to
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

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.