Interface NotificationStateService
- All Known Implementing Classes:
DefaultNotificationStateService
public interface NotificationStateService
Used to retrieve the
NotificationState
from the NotificationStateAware
.- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptiongetOrInitializeNotificationState
(NotificationStateAware stateAware, String name) Search theNotificationState
on theNotificationStateAware
by its name.
-
Method Details
-
getOrInitializeNotificationState
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
-