|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationSubscriber
A subscriber of notifications published on a given topic in Silverpeas. The subscriber will be notified of the events or actions occuring in Silverpeas and about the subscribed topic. At subscription, the subscriber indicates the topic of the notifications it is interested on. It will be then informed of such notifications through the onNotification() callback; so that the subscriber is also a notification listener. The subscriber can subscribe several topics.
Method Summary | |
---|---|
String |
getId()
Gets the unique identifier of this subscriber in the MOM system. |
void |
onNotification(SilverpeasNotification notification,
NotificationTopic onTopic)
Callback called at the reception of a notification on the topic on which it is listening. |
void |
setId(String id)
Sets the unique identifier for this subscriber. |
void |
subscribeForNotifications(NotificationTopic onTopic)
Subscribes to notifications received on the specified topic. |
void |
unsubscribeForNotifications(NotificationTopic onTopic)
Unsubscribes from the notifications sent on the specified topic. |
Method Detail |
---|
String getId()
void setId(String id)
id
- the unique identifier to set.void subscribeForNotifications(NotificationTopic onTopic)
onTopic
- the topic on which this listener listens.void unsubscribeForNotifications(NotificationTopic onTopic)
onTopic
- the topic to unsubscribe.void onNotification(SilverpeasNotification notification, NotificationTopic onTopic)
notification
- the received notification .onTopic
- the topic for which the notification was emitted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |