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)
          Called when an entry has been added.
 void entryDeleted(DeleteOperationContext opContext)
          Called when an entry has been deleted.
 void entryModified(ModifyOperationContext opContext)
          Called when an entry has been modified.
 void entryMoved(MoveOperationContext opContext)
          Called when an entry is moved.
 void entryMovedAndRenamed(MoveAndRenameOperationContext opContext)
          Called when an entry is moved and renamed at the same time.
 void entryRenamed(RenameOperationContext opContext)
          Called when an entry has been renamed.
 
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)
Description copied from interface: DirectoryListener
Called when an entry has been added.

Specified by:
entryAdded in interface DirectoryListener
Parameters:
opContext - the add operation context responsible for the change

entryDeleted

public void entryDeleted(DeleteOperationContext opContext)
Description copied from interface: DirectoryListener
Called when an entry has been deleted.

Specified by:
entryDeleted in interface DirectoryListener
Parameters:
opContext - the delete operation context responsible for the change

entryModified

public void entryModified(ModifyOperationContext opContext)
Description copied from interface: DirectoryListener
Called when an entry has been modified.

Specified by:
entryModified in interface DirectoryListener
Parameters:
opContext - the modify operation context responsible for the change

entryMoved

public void entryMoved(MoveOperationContext opContext)
Description copied from interface: DirectoryListener
Called when an entry is moved.

Specified by:
entryMoved in interface DirectoryListener
Parameters:
opContext - the move operation context responsible for the change

entryMovedAndRenamed

public void entryMovedAndRenamed(MoveAndRenameOperationContext opContext)
Description copied from interface: DirectoryListener
Called when an entry is moved and renamed at the same time.

Specified by:
entryMovedAndRenamed in interface DirectoryListener
Parameters:
opContext - the move/rename operation context responsible for the change

entryRenamed

public void entryRenamed(RenameOperationContext opContext)
Description copied from interface: DirectoryListener
Called when an entry has been renamed.

Specified by:
entryRenamed in interface DirectoryListener
Parameters:
opContext - the rename operation context responsible for the change


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