Class DefaultNotificationStateService
java.lang.Object
com.broadleafcommerce.common.messaging.notification.DefaultNotificationStateService
- All Implemented Interfaces:
 NotificationStateService
Default implementation of 
NotificationStateService.- Author:
 - Dima Myroniuk (dmyroniuk)
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDefaultNotificationStateService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)  - 
Method Summary
Modifier and TypeMethodDescriptiongetOrInitializeNotificationState(NotificationStateAware stateAware, String name) Search theNotificationStateon theNotificationStateAwareby its name. 
- 
Constructor Details
- 
DefaultNotificationStateService
public DefaultNotificationStateService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)  
 - 
 - 
Method Details
- 
getOrInitializeNotificationState
public NotificationState getOrInitializeNotificationState(NotificationStateAware stateAware, String name) Description copied from interface:NotificationStateServiceSearch theNotificationStateon theNotificationStateAwareby its name. If it was not found, a new notification will be created and added toNotificationStateAware.- Specified by:
 getOrInitializeNotificationStatein interfaceNotificationStateService- Parameters:
 stateAware- a domain that keeps track ofNotificationStatename- the notification name- Returns:
 - the notification from the 
NotificationStateAwareif found or the new one otherwise 
 
 -