org.apache.directory.server.ldap.handlers
Class ModifyDnHandler

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.LdapRequestHandler<org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest>
      extended by org.apache.directory.server.ldap.handlers.ModifyDnHandler
All Implemented Interfaces:
org.apache.mina.handler.demux.MessageHandler<org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest>

public class ModifyDnHandler
extends LdapRequestHandler<org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest>

A single reply handler for InternalModifyDnRequests.

Version:
$Rev: 664302 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.server.ldap.handlers.LdapRequestHandler
ldapServer
 
Fields inherited from interface org.apache.mina.handler.demux.MessageHandler
NOOP
 
Constructor Summary
ModifyDnHandler()
           
 
Method Summary
 void handle(LdapSession session, org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest req)
          Deal with a ModifyDN request received from a client.
 
Methods inherited from class org.apache.directory.server.ldap.handlers.LdapRequestHandler
getLdapServer, handleException, handleMessage, isConfidentialityRequirementSatisfied, rejectWithoutConfidentiality, setLdapServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifyDnHandler

public ModifyDnHandler()
Method Detail

handle

public void handle(LdapSession session,
                   org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest req)
Deal with a ModifyDN request received from a client. A ModifyDN operation has more than one semantic, depending on its parameters. In any case, the first argument is the DN entry to be changed. We then have the new relative DN for this entry. Two other arguments can be provided : - deleteOldRdn : if the old RDN attributes should be removed from the new entry or not (for instance, if the old RDN was cn=acme, and the new one is sn=acme, then we may have to remove the cn: acme from the attributes list) - newSuperior : this is a move operation. The entry is removed from its current location, and created in the new one.

Specified by:
handle in class LdapRequestHandler<org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest>
Parameters:
session - The associated session
req - The message we have to handle


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