org.apache.directory.server.ldap.handlers.request
Class ModifyDnRequestHandler

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.LdapRequestHandler<org.apache.directory.api.ldap.model.message.ModifyDnRequest>
      extended by org.apache.directory.server.ldap.handlers.request.ModifyDnRequestHandler
All Implemented Interfaces:
org.apache.mina.handler.demux.MessageHandler<org.apache.directory.api.ldap.model.message.ModifyDnRequest>

public class ModifyDnRequestHandler
extends LdapRequestHandler<org.apache.directory.api.ldap.model.message.ModifyDnRequest>

A single reply MessageReceived handler for ModifyDnRequests.

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
ModifyDnRequestHandler()
           
 
Method Summary
 void handle(LdapSession session, org.apache.directory.api.ldap.model.message.ModifyDnRequest 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

ModifyDnRequestHandler

public ModifyDnRequestHandler()
Method Detail

handle

public void handle(LdapSession session,
                   org.apache.directory.api.ldap.model.message.ModifyDnRequest 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.api.ldap.model.message.ModifyDnRequest>
Parameters:
session - The associated session
req - The message we have to handle


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