org.apache.directory.shared.ldap.extras.controls
Class SyncModifyDnImpl

java.lang.Object
  extended by org.apache.directory.shared.ldap.model.message.controls.AbstractControl
      extended by org.apache.directory.shared.ldap.extras.controls.SyncModifyDnImpl
All Implemented Interfaces:
SyncModifyDn, Control

public class SyncModifyDnImpl
extends AbstractControl
implements SyncModifyDn

A simple SyncModifyDn implementation to hold properties.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.SyncModifyDn
OID
 
Constructor Summary
SyncModifyDnImpl()
          Creates a new instance of SyncModifyDnImpl.
SyncModifyDnImpl(boolean isCritical)
          Creates a new instance of SyncModifyDnImpl.
 
Method Summary
 boolean equals(Object o)
           
 String getEntryDn()
          
 SyncModifyDnType getModDnType()
          
 String getNewRdn()
          
 String getNewSuperiorDn()
          
 int hashCode()
           
 boolean isDeleteOldRdn()
          
 void setDeleteOldRdn(boolean deleteOldRdn)
          
 void setEntryDn(String entryDn)
          
 void setModDnType(SyncModifyDnType modDnType)
          
 void setNewRdn(String newRdn)
          
 void setNewSuperiorDn(String newSuperiorDn)
          
 String toString()
           
 
Methods inherited from class org.apache.directory.shared.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control
getOid, isCritical, setCritical
 

Constructor Detail

SyncModifyDnImpl

public SyncModifyDnImpl()
Creates a new instance of SyncModifyDnImpl.


SyncModifyDnImpl

public SyncModifyDnImpl(boolean isCritical)
Creates a new instance of SyncModifyDnImpl.

Parameters:
isCritical - The critical flag
Method Detail

getEntryDn

public String getEntryDn()

Specified by:
getEntryDn in interface SyncModifyDn
Returns:
the current entry DN

setEntryDn

public void setEntryDn(String entryDn)

Specified by:
setEntryDn in interface SyncModifyDn
Parameters:
entryDn - The Entry DN

getNewSuperiorDn

public String getNewSuperiorDn()

Specified by:
getNewSuperiorDn in interface SyncModifyDn
Returns:
The new superior DN if it's a Move or a Move@Rename operation

setNewSuperiorDn

public void setNewSuperiorDn(String newSuperiorDn)

Specified by:
setNewSuperiorDn in interface SyncModifyDn
Parameters:
newSuperiorDn - Sets the new Superior DN

getNewRdn

public String getNewRdn()

Specified by:
getNewRdn in interface SyncModifyDn
Returns:
The new name if it's a Rename or Move&Rename opertion

setNewRdn

public void setNewRdn(String newRdn)

Specified by:
setNewRdn in interface SyncModifyDn
Parameters:
newRdn - Sets the new name

isDeleteOldRdn

public boolean isDeleteOldRdn()

Specified by:
isDeleteOldRdn in interface SyncModifyDn
Returns:
true if the attribute associated with the old name is to be removed (rename operation)

setDeleteOldRdn

public void setDeleteOldRdn(boolean deleteOldRdn)

Specified by:
setDeleteOldRdn in interface SyncModifyDn
Parameters:
deleteOldRdn - The flag to tell the server to remove the attribute assoicated with the old name

getModDnType

public SyncModifyDnType getModDnType()

Specified by:
getModDnType in interface SyncModifyDn
Returns:
The MODDN operation type

setModDnType

public void setModDnType(SyncModifyDnType modDnType)

Specified by:
setModDnType in interface SyncModifyDn
Parameters:
modDnType - The MODDN operation type

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractControl
See Also:
Object.hashCode()

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractControl
See Also:
Object.equals(Object)

toString

public String toString()
Overrides:
toString in class AbstractControl
See Also:
Object.toString()


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.