Class NotificationRegistryImpl
- java.lang.Object
-
- 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
Constructors Constructor Description NotificationRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Set<String>getNotificationEventNames()Gets the list of event names used by notifications.Map<String,List<Notification>>getNotificationRegistry()Deprecated.since 10.2, seems unusedList<Notification>getNotifications()List<Notification>getNotificationsForEvent(String eventId)Gets the list of possible notifications for an event.List<Notification>getNotificationsForSubscriptions(String parentType)voidregisterNotification(Notification notif, List<String> events)voidunregisterNotification(Notification notif)Unregister notification contribution and remove reference in event registry
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceNotificationRegistry
-
registerNotification
public void registerNotification(Notification notif, List<String> events)
- Specified by:
registerNotificationin interfaceNotificationRegistry
-
unregisterNotification
public void unregisterNotification(Notification notif)
Description copied from interface:NotificationRegistryUnregister notification contribution and remove reference in event registry- Specified by:
unregisterNotificationin interfaceNotificationRegistry
-
getNotificationEventNames
public Set<String> getNotificationEventNames()
Description copied from interface:NotificationRegistryGets the list of event names used by notifications.- Specified by:
getNotificationEventNamesin interfaceNotificationRegistry
-
getNotificationsForEvent
public List<Notification> getNotificationsForEvent(String eventId)
Gets the list of possible notifications for an event.- Specified by:
getNotificationsForEventin interfaceNotificationRegistry
-
getNotifications
public List<Notification> getNotifications()
- Specified by:
getNotificationsin interfaceNotificationRegistry
-
getNotificationRegistry
@Deprecated public Map<String,List<Notification>> getNotificationRegistry()
Deprecated.since 10.2, seems unused
-
getNotificationsForSubscriptions
public List<Notification> getNotificationsForSubscriptions(String parentType)
- Specified by:
getNotificationsForSubscriptionsin interfaceNotificationRegistry
-
-