org.apache.directory.server.ldap.handlers
Class ModifyDnHandler
java.lang.Object
org.apache.directory.server.ldap.handlers.LdapRequestHandler<org.apache.directory.shared.ldap.model.message.ModifyDnRequest>
org.apache.directory.server.ldap.handlers.ModifyDnHandler
- All Implemented Interfaces:
- org.apache.mina.handler.demux.MessageHandler<org.apache.directory.shared.ldap.model.message.ModifyDnRequest>
public class ModifyDnHandler
- extends LdapRequestHandler<org.apache.directory.shared.ldap.model.message.ModifyDnRequest>
A single reply handler for ModifyDnRequests.
- Author:
- Apache Directory Project
| Fields inherited from interface org.apache.mina.handler.demux.MessageHandler |
NOOP |
|
Method Summary |
void |
handle(LdapSession session,
org.apache.directory.shared.ldap.model.message.ModifyDnRequest req)
Deal with a ModifyDN request received from a client. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifyDnHandler
public ModifyDnHandler()
handle
public void handle(LdapSession session,
org.apache.directory.shared.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.shared.ldap.model.message.ModifyDnRequest>
- Parameters:
session - The associated sessionreq - The message we have to handle
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.