com.silverpeas.notification
Interface NotificationPublisher

All Known Implementing Classes:
JMSPublishingService

public interface NotificationPublisher

A publisher of a notification in Silverpeas. A notification is a message (id est notice) informing one or several subscribers about an action or an event occuring in Silverpeas and in what a Silverpeas object or resource is involved. The implementation of this interface should wrap the underlying messaging system used to deliver notification to the several subscribers of a such type of announcements. The implementation should be deployed into an IoC container under the name 'notificationPublisher'.


Method Summary
 void publish(SilverpeasNotification notification, NotificationTopic onTopic)
          Publishes a notification.
 

Method Detail

publish

void publish(SilverpeasNotification notification,
             NotificationTopic onTopic)
Publishes a notification. All subscribers for a such announcement will recieve it. If the event publication failed, then a PublishingException runtime exception will be thrown.

Parameters:
notification - the notification to publish.
onTopic - the topic on which the notification should be published.


Copyright © 2016 Silverpeas. All Rights Reserved.