org.apache.directory.shared.dsmlv2.request
Class ModifyDNRequestDsml

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.ldap.codec.LdapMessageCodec
          extended by org.apache.directory.shared.dsmlv2.LdapMessageDecorator
              extended by org.apache.directory.shared.dsmlv2.request.LdapRequestDecorator
                  extended by org.apache.directory.shared.dsmlv2.request.AbstractRequestDsml
                      extended by org.apache.directory.shared.dsmlv2.request.ModifyDNRequestDsml
All Implemented Interfaces:
Asn1Object, DsmlDecorator

public class ModifyDNRequestDsml
extends AbstractRequestDsml

DSML Decorator for ModifyDNRequest

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

Field Summary
 
Fields inherited from class org.apache.directory.shared.dsmlv2.LdapMessageDecorator
instance
 
Fields inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec
ldapMessageLength
 
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
parent
 
Constructor Summary
ModifyDNRequestDsml()
          Creates a new instance of ModifyDNRequestDsml.
ModifyDNRequestDsml(ModifyDNRequestCodec ldapMessage)
          Creates a new instance of ModifyDNRequestDsml.
 
Method Summary
 DN getEntry()
          Get the modification's DN
 MessageTypeEnum getMessageType()
          Get the message type
 RDN getNewRDN()
          Get the new RDN
 DN getNewSuperior()
          Get the newSuperior
 boolean isDeleteOldRDN()
          Tells if the old RDN is to be deleted
 void setDeleteOldRDN(boolean deleteOldRDN)
          Set the flag to delete the old RDN
 void setEntry(DN entry)
          Set the modification DN.
 void setNewRDN(RDN newRDN)
          Set the new RDN
 void setNewSuperior(DN newSuperior)
          Set the new superior
 org.dom4j.Element toDsml(org.dom4j.Element root)
          Creates the Request Element and adds RequestID and Controls.
 
Methods inherited from class org.apache.directory.shared.dsmlv2.LdapMessageDecorator
addControl, addLength, computeLength, computeLengthProtocolOp, encode, encodeProtocolOp, getAbandonRequest, getAddRequest, getAddResponse, getBindRequest, getBindResponse, getCompareRequest, getCompareResponse, getControls, getControls, getCurrentControl, getCurrentLength, getDelRequest, getDelResponse, getExpectedLength, getExtendedRequest, getExtendedResponse, getLdapResponse, getMessageId, getMessageTypeName, getModifyDNRequest, getModifyDNResponse, getModifyRequest, getModifyResponse, getParent, getSearchRequest, getSearchResultDone, getSearchResultEntry, getSearchResultReference, getUnBindRequest, setCurrentLength, setExpectedLength, setMessageId, setParent, toString
 
Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec
addControls, encode, getCodecControl, initControls, toString
 
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
getTlvId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyDNRequestDsml

public ModifyDNRequestDsml()
Creates a new instance of ModifyDNRequestDsml.


ModifyDNRequestDsml

public ModifyDNRequestDsml(ModifyDNRequestCodec ldapMessage)
Creates a new instance of ModifyDNRequestDsml.

Parameters:
ldapMessage - the message to decorate
Method Detail

getMessageType

public MessageTypeEnum getMessageType()
Get the message type

Overrides:
getMessageType in class LdapMessageDecorator
Returns:
The message type

toDsml

public org.dom4j.Element toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.

Specified by:
toDsml in interface DsmlDecorator
Overrides:
toDsml in class AbstractRequestDsml
Parameters:
root - the root element
Returns:
the Request Element of the given name containing

getEntry

public DN getEntry()
Get the modification's DN

Returns:
Returns the entry.

setEntry

public void setEntry(DN entry)
Set the modification DN.

Parameters:
entry - The entry to set.

isDeleteOldRDN

public boolean isDeleteOldRDN()
Tells if the old RDN is to be deleted

Returns:
Returns the deleteOldRDN.

setDeleteOldRDN

public void setDeleteOldRDN(boolean deleteOldRDN)
Set the flag to delete the old RDN

Parameters:
deleteOldRDN - The deleteOldRDN to set.

getNewRDN

public RDN getNewRDN()
Get the new RDN

Returns:
Returns the newRDN.

setNewRDN

public void setNewRDN(RDN newRDN)
Set the new RDN

Parameters:
newRDN - The newRDN to set.

getNewSuperior

public DN getNewSuperior()
Get the newSuperior

Returns:
Returns the newSuperior.

setNewSuperior

public void setNewSuperior(DN newSuperior)
Set the new superior

Parameters:
newSuperior - The newSuperior to set.


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