com.silverpeas.notification
Class MyNotificationSubscriber

java.lang.Object
  extended by 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.


Constructor Summary
MyNotificationSubscriber()
           
 
Method Summary
 String getId()
           
 SilverpeasNotification getReceivedNotification()
           
 void onNotification(SilverpeasNotification notification, NotificationTopic onTopic)
           
 void setId(String id)
           
 void subscribeForNotifications(NotificationTopic onTopic)
           
 void unsubscribeForNotifications(NotificationTopic onTopic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyNotificationSubscriber

public MyNotificationSubscriber()
Method Detail

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.