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