com.silverpeas.notification
Class MyNotificationSubscriber
java.lang.Object
com.silverpeas.notification.MyNotificationSubscriber
- All Implemented Interfaces:
- NotificationSubscriber, EventListener
@Named(value="myNotificationSubscriber")
public class MyNotificationSubscriber
- extends Object
- implements NotificationSubscriber
A subscriber on event topics for testing purpose.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyNotificationSubscriber
public MyNotificationSubscriber()
onNotification
public void onNotification(SilverpeasNotification notification,
NotificationTopic onTopic)
- Specified by:
onNotification in interface NotificationSubscriber
getReceivedNotification
public SilverpeasNotification getReceivedNotification()
getId
public String getId()
- Specified by:
getId in interface NotificationSubscriber
setId
public void setId(String id)
- Specified by:
setId in interface NotificationSubscriber
subscribeForNotifications
public void subscribeForNotifications(NotificationTopic onTopic)
- Specified by:
subscribeForNotifications in interface NotificationSubscriber
unsubscribeForNotifications
public void unsubscribeForNotifications(NotificationTopic onTopic)
- Specified by:
unsubscribeForNotifications in interface NotificationSubscriber
Copyright © 2016 Silverpeas. All Rights Reserved.