org.apache.directory.server.ldap.handlers
Class PersistentSearchListener

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.PersistentSearchListener
All Implemented Interfaces:
DirectoryListener, org.apache.directory.shared.ldap.message.AbandonListener

public class PersistentSearchListener
extends java.lang.Object
implements DirectoryListener, org.apache.directory.shared.ldap.message.AbandonListener

A DirectoryListener implementation which sends back added, deleted, modified or renamed entries to a client that created this listener. This class is part of the persistent search implementation which uses the event notification scheme built into the server core. This listener is disabled only when a session closes or when an abandon request cancels it. Hence time and size limits in normal search operations do not apply here.

Version:
$Rev: 690033 $
Author:
Apache Directory Project

Method Summary
 void abandon()
           
 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.
 void requestAbandoned(org.apache.directory.shared.ldap.message.AbandonableRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

abandon

public void abandon()
             throws javax.naming.NamingException
Throws:
javax.naming.NamingException

requestAbandoned

public void requestAbandoned(org.apache.directory.shared.ldap.message.AbandonableRequest req)
Specified by:
requestAbandoned in interface org.apache.directory.shared.ldap.message.AbandonListener

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.