Interface NotificationStateService
-
- All Known Implementing Classes:
DefaultNotificationStateService
public interface NotificationStateServiceUsed to retrieve theNotificationStatefrom theNotificationStateAware.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NotificationStategetOrInitializeNotificationState(NotificationStateAware stateAware, String name)Search theNotificationStateon theNotificationStateAwareby its name.
-
-
-
Method Detail
-
getOrInitializeNotificationState
NotificationState getOrInitializeNotificationState(NotificationStateAware stateAware, String name)
Search theNotificationStateon theNotificationStateAwareby its name. If it was not found, a new notification will be created and added toNotificationStateAware.- Parameters:
stateAware- a domain that keeps track ofNotificationStatename- the notification name- Returns:
- the notification from the
NotificationStateAwareif found or the new one otherwise
-
-