Package com.sun.identity.sm.ldap
Class LDAPEventManager
- java.lang.Object
-
- com.sun.identity.sm.ldap.LDAPEventManager
-
- All Implemented Interfaces:
IDSEventListener,EventListener
public class LDAPEventManager extends Object implements IDSEventListener
This class registers itself as a listener tocom.iplanet.services.ldap.event.EventService which sets up persistant search connections with the event service for any changes to SMS object classes
-
-
Field Summary
Fields Modifier and Type Field Description protected static SMSObjectListenerchangeListenerprotected static Debugdebugprotected static StringOC_SERVICEprotected static StringOC_SERVICE_COMPprotected static StringOC_SERVICE_REALMprotected 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 LDAPEventManager()
-
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 callback method is called by the EventService when the Directory Server triggers a PersistentSearch notificationvoideventError(String errorStr)This callback method is called by the EventService when an error is encountered after setting a Persistent Search request in the Directory ServerStringgetBase()Returns the base DN for the persistent searches.StringgetFilter()intgetOperations()intgetScope()voidsetListeners(Map listener)
-
-
-
Field Detail
-
changeListener
protected static SMSObjectListener changeListener
-
debug
protected static Debug debug
-
OC_SERVICE
protected static final String OC_SERVICE
- See Also:
- Constant Field Values
-
OC_SERVICE_COMP
protected static final String OC_SERVICE_COMP
- See Also:
- Constant Field Values
-
OC_SERVICE_REALM
protected static final String OC_SERVICE_REALM
- See Also:
- Constant Field Values
-
SEARCH_FILTER
protected static final String SEARCH_FILTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
entryChanged
public void entryChanged(DSEvent dsEvent)
Description copied from interface:IDSEventListenerThis callback method is called by the EventService when the Directory Server triggers a PersistentSearch notification- Specified by:
entryChangedin interfaceIDSEventListener
-
eventError
public void eventError(String errorStr)
Description copied from interface:IDSEventListenerThis callback method is called by the EventService when an error is encountered after setting a Persistent Search request in the Directory Server- Specified by:
eventErrorin interfaceIDSEventListener
-
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()
Returns the base DN for the persistent searches. Since this function can be called asynchronously by the EventService, should not have dependency on any classes in SMS package.- Specified by:
getBasein interfaceIDSEventListener- See Also:
IDSEventListener.getBase()
-
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
-
-