public interface NotificationService
| Modifier and Type | Method and Description |
|---|---|
void |
clearNotifications(String source)
Sends clear event which will remove all notifications from specified source.
|
void |
clearNotifications(String source,
NotificationEvent.Level level)
Sends clear event which will remove all notifications from specified source of specified importance level.
|
String |
getWidgetNotificationSource(ActionContext<?> context)
Gets default source for each notification sent by specified action.
|
String |
getWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)
Gets default source for each notification sent by specified widget.
|
default void |
notifyUser(ActionContext<?> context,
String eventType,
NotificationEvent.Level level,
Object... referenceObjects)
Sends a notification to end user.
|
void |
notifyUser(String source,
String eventType,
NotificationEvent.Level level,
Object... referenceObjects)
Sends a notification to end user.
|
default void |
notifyUser(WidgetInstanceManager widgetInstanceManager,
String eventType,
NotificationEvent.Level level,
Object... referenceObjects)
Sends a notification to end user.
|
void notifyUser(String source, String eventType, NotificationEvent.Level level, Object... referenceObjects)
source - identity of notification source.eventType - type of notification to be sent NotificationEventTypes.level - importance level of notification.referenceObjects - optional array of objects that are related to event.void clearNotifications(String source)
source - identity of notification source.void clearNotifications(String source, NotificationEvent.Level level)
source - identity of notification source.level - importance level of notifications to be removed.String getWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)
widgetInstanceManager - instance manager of a widget which sends notification.default void notifyUser(WidgetInstanceManager widgetInstanceManager, String eventType, NotificationEvent.Level level, Object... referenceObjects)
widgetInstanceManager - instance manager of a widget which sends notification.eventType - type of notification to be sent NotificationEventTypes.level - importance level of notification.referenceObjects - optional array of objects that are related to event.getWidgetNotificationSource(WidgetInstanceManager)String getWidgetNotificationSource(ActionContext<?> context)
context - action context.default void notifyUser(ActionContext<?> context, String eventType, NotificationEvent.Level level, Object... referenceObjects)
context - action context.eventType - type of notification to be sent NotificationEventTypes.level - importance level of notification.referenceObjects - optional array of objects that are related to event.getWidgetNotificationSource(ActionContext)Copyright © 2018. All rights reserved.