|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.jndi.EventListenerAdapter
public class EventListenerAdapter
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?
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 |
---|
public EventListenerAdapter(ServerLdapContext source, javax.naming.event.NamingListener listener)
public EventListenerAdapter(ServerLdapContext source, javax.naming.event.NamingListener listener, javax.naming.directory.SearchControls controls)
Method Detail |
---|
public void entryAdded(AddOperationContext opContext)
DirectoryListener
entryAdded
in interface DirectoryListener
opContext
- the add operation context responsible for the changepublic void entryDeleted(DeleteOperationContext opContext)
DirectoryListener
entryDeleted
in interface DirectoryListener
opContext
- the delete operation context responsible for the changepublic void entryModified(ModifyOperationContext opContext)
DirectoryListener
entryModified
in interface DirectoryListener
opContext
- the modify operation context responsible for the changepublic void entryMoved(MoveOperationContext opContext)
DirectoryListener
entryMoved
in interface DirectoryListener
opContext
- the move operation context responsible for the changepublic void entryMovedAndRenamed(MoveAndRenameOperationContext opContext)
DirectoryListener
entryMovedAndRenamed
in interface DirectoryListener
opContext
- the move/rename operation context responsible for the changepublic void entryRenamed(RenameOperationContext opContext)
DirectoryListener
entryRenamed
in interface DirectoryListener
opContext
- the rename operation context responsible for the change
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |