Interface NotificationService
-
- All Known Subinterfaces:
NotificationService
- All Known Implementing Classes:
DefaultNotificationService,DefaultNotificationService
@Deprecated public interface NotificationServiceDeprecated.since 1811, useNotificationServiceinsteadNotification service responsible for sending user notifications.- See Also:
NotificationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidclearNotifications(java.lang.String source)Deprecated.Sends clear event which will remove all notifications from specified source.voidclearNotifications(java.lang.String source, NotificationEvent.Level level)Deprecated.Sends clear event which will remove all notifications from specified source of specified importance level.java.lang.StringgetWidgetNotificationSource(ActionContext<?> context)Deprecated.Gets default source for each notification sent by specified action.java.lang.StringgetWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)Deprecated.Gets default source for each notification sent by specified widget.default voidnotifyUser(ActionContext<?> context, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)Deprecated.Sends a notification to end user.default voidnotifyUser(WidgetInstanceManager widgetInstanceManager, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)Deprecated.Sends a notification to end user.voidnotifyUser(java.lang.String source, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)Deprecated.Sends a notification to end user.
-
-
-
Method Detail
-
notifyUser
void notifyUser(java.lang.String source, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)Deprecated.Sends a notification to end user.- Parameters:
source- identity of notification source.eventType- type of notification to be sentNotificationEventTypes.level- importance level of notification.referenceObjects- optional array of objects that are related to event.
-
clearNotifications
void clearNotifications(java.lang.String source)
Deprecated.Sends clear event which will remove all notifications from specified source.- Parameters:
source- identity of notification source.
-
clearNotifications
void clearNotifications(java.lang.String source, NotificationEvent.Level level)Deprecated.Sends clear event which will remove all notifications from specified source of specified importance level.- Parameters:
source- identity of notification source.level- importance level of notifications to be removed.
-
getWidgetNotificationSource
java.lang.String getWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)
Deprecated.Gets default source for each notification sent by specified widget.- Parameters:
widgetInstanceManager- instance manager of a widget which sends notification.- Returns:
- source name for notification.
-
notifyUser
default void notifyUser(WidgetInstanceManager widgetInstanceManager, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)
Deprecated.Sends a notification to end user.- Parameters:
widgetInstanceManager- instance manager of a widget which sends notification.eventType- type of notification to be sentNotificationEventTypes.level- importance level of notification.referenceObjects- optional array of objects that are related to event.- See Also:
getWidgetNotificationSource(WidgetInstanceManager)
-
getWidgetNotificationSource
java.lang.String getWidgetNotificationSource(ActionContext<?> context)
Deprecated.Gets default source for each notification sent by specified action.- Parameters:
context- action context.- Returns:
- source name for notification.
-
notifyUser
default void notifyUser(ActionContext<?> context, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)
Deprecated.Sends a notification to end user.- Parameters:
context- action context.eventType- type of notification to be sentNotificationEventTypes.level- importance level of notification.referenceObjects- optional array of objects that are related to event.- See Also:
getWidgetNotificationSource(ActionContext)
-
-