Package com.iplanet.am.sdk.ldap
Class EntryEventListener
- java.lang.Object
-
- com.iplanet.am.sdk.ldap.EntryEventListener
-
- All Implemented Interfaces:
IDSEventListener,EventListener
public class EntryEventListener extends Object implements IDSEventListener
TheAMEntryEventListenerhandles all the events that are triggered by any modification/deletion/renaming LDAP entires which do not contain ACI's. This class implements thecom.iplanet.services .ldap.event.IDSEventListenerinterface.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intOPERATIONSprotected static StringSEARCH_FILTER-
Fields inherited from interface com.iplanet.services.ldap.event.IDSEventListener
CHANGE_ADD, CHANGE_DELETE, CHANGE_MOD_LOCATION, CHANGE_MODIFY
-
-
Constructor Summary
Constructors Constructor Description EntryEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallEntriesChanged()This callback notifies listeners that EventService is restarting the Persistent Search connections due to connection errors, and there is no guarantee of what could have changed in the directory so mark all entries as modified.voidentryChanged(DSEvent dsEvent)This method will be invoked by theEventServiceif the events for which this listener registered has been triggered.voideventError(String errorStr)This method is invoked by theEventServiceif it encounters an error.StringgetBase()StringgetFilter()intgetOperations()intgetScope()voidsetListeners(Map listener)
-
-
-
Field Detail
-
SEARCH_FILTER
protected static final String SEARCH_FILTER
- See Also:
- Constant Field Values
-
OPERATIONS
protected static final int OPERATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
entryChanged
public void entryChanged(DSEvent dsEvent)
This method will be invoked by theEventServiceif the events for which this listener registered has been triggered. Since this listener is interested in modifications/deletions/renaming of normal directory entires, it identifies the distinguished names affected by this event and sends a notification to theAMObjectImplby calling the appropriate method.- Specified by:
entryChangedin interfaceIDSEventListener- Parameters:
dsEvent-DSEventobject generated by theEventService.
-
eventError
public void eventError(String errorStr)
This method is invoked by theEventServiceif it encounters an error.- Specified by:
eventErrorin interfaceIDSEventListener- Parameters:
errorStr- error string.
-
allEntriesChanged
public void allEntriesChanged()
Description copied from interface:IDSEventListenerThis callback notifies listeners that EventService is restarting the Persistent Search connections due to connection errors, and there is no guarantee of what could have changed in the directory so mark all entries as modified.- Specified by:
allEntriesChangedin interfaceIDSEventListener
-
getBase
public String getBase()
- Specified by:
getBasein interfaceIDSEventListener
-
getFilter
public String getFilter()
- Specified by:
getFilterin interfaceIDSEventListener
-
getOperations
public int getOperations()
- Specified by:
getOperationsin interfaceIDSEventListener
-
getScope
public int getScope()
- Specified by:
getScopein interfaceIDSEventListener
-
setListeners
public void setListeners(Map listener)
- Specified by:
setListenersin interfaceIDSEventListener
-
-