org.apache.directory.server.core.jndi
Class EventListenerAdapter

java.lang.Object
  extended by org.apache.directory.server.core.jndi.EventListenerAdapter
All Implemented Interfaces:
DirectoryListener

public class EventListenerAdapter
extends java.lang.Object
implements DirectoryListener

A DirectoryListener implementation which adapts call back to methods notifying of changes to the DIT into NamingEvents for use with the ApacheDS DirectoryService JNDI provider. TODO for the time being bindings in NamingEvents generated are not relative to the source context which they should be. TODO presume correctly manipulated entry values in opContext.getEntry() objects to function properly - at this point this is not handled in the Interceptors and needs to be added for this adapter to populate the event bindings. TODO - Should we factor in the attributes to be returned in bindings? Perhaps this should be privided as search controls along with the info we need to handle aliases, and referals?

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

Constructor Summary
EventListenerAdapter(ServerLdapContext source, javax.naming.event.NamingListener listener)
           
EventListenerAdapter(ServerLdapContext source, javax.naming.event.NamingListener listener, javax.naming.directory.SearchControls controls)
           
 
Method Summary
 void entryAdded(AddOperationContext opContext)
           
 void entryDeleted(DeleteOperationContext opContext)
           
 void entryModified(ModifyOperationContext opContext)
           
 void entryMoved(MoveOperationContext opContext)
           
 void entryMovedAndRenamed(MoveAndRenameOperationContext opContext)
           
 void entryRenamed(RenameOperationContext opContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListenerAdapter

public EventListenerAdapter(ServerLdapContext source,
                            javax.naming.event.NamingListener listener)

EventListenerAdapter

public EventListenerAdapter(ServerLdapContext source,
                            javax.naming.event.NamingListener listener,
                            javax.naming.directory.SearchControls controls)
Method Detail

entryAdded

public void entryAdded(AddOperationContext opContext)
Specified by:
entryAdded in interface DirectoryListener

entryDeleted

public void entryDeleted(DeleteOperationContext opContext)
Specified by:
entryDeleted in interface DirectoryListener

entryModified

public void entryModified(ModifyOperationContext opContext)
Specified by:
entryModified in interface DirectoryListener

entryMoved

public void entryMoved(MoveOperationContext opContext)
Specified by:
entryMoved in interface DirectoryListener

entryMovedAndRenamed

public void entryMovedAndRenamed(MoveAndRenameOperationContext opContext)
Specified by:
entryMovedAndRenamed in interface DirectoryListener

entryRenamed

public void entryRenamed(RenameOperationContext opContext)
Specified by:
entryRenamed in interface DirectoryListener


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