Package com.sun.identity.sm
Class SMSNotificationManager
- java.lang.Object
-
- com.sun.identity.sm.SMSNotificationManager
-
- All Implemented Interfaces:
SMSObjectListener,EventListener
public class SMSNotificationManager extends Object implements SMSObjectListener
Handles all the notification events for SMS. Classes that will register for notifications are: 1) SMSEventListnerManager -- to send notifications to internal objects Framework classes i.e., Cached* & *Impls that maintain read only caches 2) SMSJAXRPCObjectImpl -- to send notifications to remote clients 3) SMSLdapObjectImpl -- to clear its internal cache Of the above (2) and (3) would happen only on the Server only. This class will resgister itself with either one of them: On the Server, if "enableDataStoreNotification" is true it would register with SMSObject.registerCallbackHandler(..) via SMSEntry, else will send notifications by itself. On the Client, it will register with SMSJAXRPCObject, again via registerCallbackHandler(..)
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.sm.SMSObjectListener
ADD, DELETE, MODIFY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallObjectsChanged()This callback notifies the listener that all object should be marked as "changed" or "dirty".protected voidderegisterListener(SMSObject object)static SMSNotificationManagergetInstance()protected voidinitializeProperties()static booleanisCacheEnabled()static booleanisDataStoreNotificationEnabled()voidobjectChanged(String name, int type)This callback method is called by the EventService when the Directory Server triggers a PersistentSearch notificationStringregisterCallbackHandler(SMSObjectListener listener)voidremoveCallbackHandler(String id)
-
-
-
Method Detail
-
initializeProperties
protected void initializeProperties()
-
deregisterListener
protected void deregisterListener(SMSObject object)
-
getInstance
public static SMSNotificationManager getInstance()
-
isCacheEnabled
public static boolean isCacheEnabled()
-
isDataStoreNotificationEnabled
public static boolean isDataStoreNotificationEnabled()
-
registerCallbackHandler
public String registerCallbackHandler(SMSObjectListener listener)
-
removeCallbackHandler
public void removeCallbackHandler(String id)
-
objectChanged
public void objectChanged(String name, int type)
Description copied from interface:SMSObjectListenerThis callback method is called by the EventService when the Directory Server triggers a PersistentSearch notification- Specified by:
objectChangedin interfaceSMSObjectListener
-
allObjectsChanged
public void allObjectsChanged()
Description copied from interface:SMSObjectListenerThis callback notifies the listener that all object should be marked as "changed" or "dirty". This callback is only used in the case when Event Service looses the directory connection and does not know what could have changed in the directory.- Specified by:
allObjectsChangedin interfaceSMSObjectListener
-
-