Class DefaultNotificationService
- java.lang.Object
-
- com.hybris.backoffice.widgets.notificationarea.DefaultNotificationService
-
- All Implemented Interfaces:
NotificationService
- Direct Known Subclasses:
DefaultNotificationService
@Deprecated public class DefaultNotificationService extends java.lang.Object implements NotificationService
Deprecated.since 1811Service responsible for sending user notifications. It usesNotificationEventto publish notifications andClearNotificationsEventto clear them.- See Also:
DefaultNotificationService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSETTING_NOTIFICATION_SOURCEDeprecated.
-
Constructor Summary
Constructors Constructor Description DefaultNotificationService()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete 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.voidnotifyUser(java.lang.String source, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)Deprecated.Sends a notification to end user.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.backoffice.widgets.notificationarea.NotificationService
notifyUser, notifyUser
-
-
-
-
Field Detail
-
SETTING_NOTIFICATION_SOURCE
public static final java.lang.String SETTING_NOTIFICATION_SOURCE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
notifyUser
public void notifyUser(java.lang.String source, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referenceObjects)Deprecated.Description copied from interface:NotificationServiceSends a notification to end user.- Specified by:
notifyUserin interfaceNotificationService- 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
public void clearNotifications(java.lang.String source)
Deprecated.Description copied from interface:NotificationServiceSends clear event which will remove all notifications from specified source.- Specified by:
clearNotificationsin interfaceNotificationService- Parameters:
source- identity of notification source.
-
clearNotifications
public void clearNotifications(java.lang.String source, NotificationEvent.Level level)Deprecated.Description copied from interface:NotificationServiceSends clear event which will remove all notifications from specified source of specified importance level.- Specified by:
clearNotificationsin interfaceNotificationService- Parameters:
source- identity of notification source.level- importance level of notifications to be removed.
-
getWidgetNotificationSource
public java.lang.String getWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)
Deprecated.Description copied from interface:NotificationServiceGets default source for each notification sent by specified widget.- Specified by:
getWidgetNotificationSourcein interfaceNotificationService- Parameters:
widgetInstanceManager- instance manager of a widget which sends notification.- Returns:
- source name for notification.
-
getWidgetNotificationSource
public java.lang.String getWidgetNotificationSource(ActionContext<?> context)
Deprecated.Description copied from interface:NotificationServiceGets default source for each notification sent by specified action.- Specified by:
getWidgetNotificationSourcein interfaceNotificationService- Parameters:
context- action context.- Returns:
- source name for notification.
-
-