public class NotificationRegistryImpl extends Object implements NotificationRegistry
| Constructor and Description |
|---|
NotificationRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
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)
Unregister notification contribution and remove reference in event registry
|
void |
unregisterNotification(Notification notif,
List<String> events)
Deprecated.
|
public NotificationRegistryImpl()
public void clear()
clear in interface NotificationRegistrypublic void registerNotification(Notification notif, List<String> events)
registerNotification in interface NotificationRegistry@Deprecated public void unregisterNotification(Notification notif, List<String> events)
unregisterNotification in interface NotificationRegistrypublic void unregisterNotification(Notification notif)
NotificationRegistryunregisterNotification in interface NotificationRegistrypublic Set<String> getNotificationEventNames()
NotificationRegistrygetNotificationEventNames in interface NotificationRegistrypublic List<Notification> getNotificationsForEvent(String eventId)
getNotificationsForEvent in interface NotificationRegistrypublic List<Notification> getNotifications()
getNotifications in interface NotificationRegistrypublic Map<String,List<Notification>> getNotificationRegistry()
public List<Notification> getNotificationsForSubscriptions(String parentType)
getNotificationsForSubscriptions in interface NotificationRegistryCopyright © 2018 Nuxeo. All rights reserved.