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 void
clear()
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)
void
registerNotification(Notification notif, List<String> events)
void
unregisterNotification(Notification notif)
Unregister notification contribution and remove reference in event registry
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceNotificationRegistry
-
registerNotification
public void registerNotification(Notification notif, List<String> events)
- Specified by:
registerNotification
in interfaceNotificationRegistry
-
unregisterNotification
public void unregisterNotification(Notification notif)
Description copied from interface:NotificationRegistry
Unregister notification contribution and remove reference in event registry- Specified by:
unregisterNotification
in interfaceNotificationRegistry
-
getNotificationEventNames
public Set<String> getNotificationEventNames()
Description copied from interface:NotificationRegistry
Gets the list of event names used by notifications.- Specified by:
getNotificationEventNames
in interfaceNotificationRegistry
-
getNotificationsForEvent
public List<Notification> getNotificationsForEvent(String eventId)
Gets the list of possible notifications for an event.- Specified by:
getNotificationsForEvent
in interfaceNotificationRegistry
-
getNotifications
public List<Notification> getNotifications()
- Specified by:
getNotifications
in interfaceNotificationRegistry
-
getNotificationRegistry
@Deprecated public Map<String,List<Notification>> getNotificationRegistry()
Deprecated.since 10.2, seems unused
-
getNotificationsForSubscriptions
public List<Notification> getNotificationsForSubscriptions(String parentType)
- Specified by:
getNotificationsForSubscriptions
in interfaceNotificationRegistry
-
-