Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ec.notification.service
Class NotificationRegistryImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.ec.notification.service.NotificationRegistryImpl
All Implemented Interfaces:
Serializable, NotificationRegistry

public class NotificationRegistryImpl
extends Object
implements NotificationRegistry

Author:
Narcis Paslaru, Thierry Martins
See Also:
Serialized Form

Constructor Summary
NotificationRegistryImpl()
           
 
Method Summary
 void clear()
           
 Set<String> getNotificationEventNames()
          Gets the list of event names used by notifications.
 Map<String,List<Notification>> getNotificationRegistry()
           
 List<Notification> getNotifications()
           
 List<Notification> getNotificationsForEvent(String eventId)
          Gets the list of possible notifications for an event.
 List<Notification> getNotificationsForSubscriptions(String parentType)
           
 void registerNotification(Notification notif, List<String> events)
           
 void unregisterNotification(Notification notif, List<String> events)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationRegistryImpl

public NotificationRegistryImpl()
Method Detail

clear

public void clear()
Specified by:
clear in interface NotificationRegistry

registerNotification

public void registerNotification(Notification notif,
                                 List<String> events)
Specified by:
registerNotification in interface NotificationRegistry

unregisterNotification

public void unregisterNotification(Notification notif,
                                   List<String> events)
Specified by:
unregisterNotification in interface NotificationRegistry

getNotificationEventNames

public Set<String> getNotificationEventNames()
Description copied from interface: NotificationRegistry
Gets the list of event names used by notifications.

Specified by:
getNotificationEventNames in interface NotificationRegistry

getNotificationsForEvent

public List<Notification> getNotificationsForEvent(String eventId)
Gets the list of possible notifications for an event.

Specified by:
getNotificationsForEvent in interface NotificationRegistry

getNotifications

public List<Notification> getNotifications()
Specified by:
getNotifications in interface NotificationRegistry

getNotificationRegistry

public Map<String,List<Notification>> getNotificationRegistry()

getNotificationsForSubscriptions

public List<Notification> getNotificationsForSubscriptions(String parentType)
Specified by:
getNotificationsForSubscriptions in interface NotificationRegistry

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.