Class DefaultNotificationService
java.lang.Object
de.hybris.platform.notificationservices.service.impl.DefaultNotificationService
- All Implemented Interfaces:
NotificationService
default implementation of NotificationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChannelValue(NotificationChannel channel, CustomerModel customer) return the notificaiton channel's valueprotected Map<String,NotificationLanguageStrategy> protected Set<NotificationChannel>getSupportedChannel(CustomerModel customer) protected booleanisSupportedByCustomer(CustomerModel customer, NotificationChannel ch) voidnotifyCustomer(NotificationType notificationType, CustomerModel customer, Map<String, ? extends ItemModel> dataMap) Send notification to customer using channels from customer's preferencesvoidnotifyCustomer(NotificationType notificationType, CustomerModel customer, Set<NotificationChannel> channelSet, Map<String, ? extends ItemModel> dataMap) Send notification to customer using specific channelsprotected voidnotifyCustomerByChannelSet(NotificationType notificationType, CustomerModel customer, Map<String, ? extends ItemModel> dataMap, Set<NotificationChannel> channelSet) protected voidprocessNotification(NotificationChannel channel, CustomerModel customer, Processor processor, Map<String, ? extends ItemModel> dataMap) voidsetNotificationChannelStrategyMap(Map<NotificationChannel, NotificationChannelStrategy> notificationChannelStrategyMap) voidsetNotificationLanguageStrategyMap(Map<String, NotificationLanguageStrategy> notificationLanguageStrategyMap) voidsetProcessorRegistry(ProcessorMappingRegistry processorRegistry)
-
Constructor Details
-
DefaultNotificationService
public DefaultNotificationService()
-
-
Method Details
-
getChannelValue
Description copied from interface:NotificationServicereturn the notificaiton channel's value- Specified by:
getChannelValuein interfaceNotificationService- Parameters:
channel- the notification channelcustomer- the customer want to get the channel value- Returns:
- return the notification channel's value for customer
-
notifyCustomer
public void notifyCustomer(NotificationType notificationType, CustomerModel customer, Map<String, ? extends ItemModel> dataMap) Description copied from interface:NotificationServiceSend notification to customer using channels from customer's preferences- Specified by:
notifyCustomerin interfaceNotificationService- Parameters:
notificationType- one specific typecustomer- one customer you want to notifydataMap- some models needed by VM file to renderer
-
notifyCustomer
public void notifyCustomer(NotificationType notificationType, CustomerModel customer, Set<NotificationChannel> channelSet, Map<String, ? extends ItemModel> dataMap) Description copied from interface:NotificationServiceSend notification to customer using specific channels- Specified by:
notifyCustomerin interfaceNotificationService- Parameters:
notificationType- one specific typecustomer- one customer you want to notifychannelSet- assigned channelsdataMap- some models needed by VM to renderer
-
notifyCustomerByChannelSet
protected void notifyCustomerByChannelSet(NotificationType notificationType, CustomerModel customer, Map<String, ? extends ItemModel> dataMap, Set<NotificationChannel> channelSet) -
processNotification
protected void processNotification(NotificationChannel channel, CustomerModel customer, Processor processor, Map<String, ? extends ItemModel> dataMap) -
getSupportedChannel
-
isSupportedByCustomer
-
setProcessorRegistry
-
getNotificationLanguageStrategyMap
-
setNotificationLanguageStrategyMap
public void setNotificationLanguageStrategyMap(Map<String, NotificationLanguageStrategy> notificationLanguageStrategyMap) -
getNotificationChannelStrategyMap
-
setNotificationChannelStrategyMap
public void setNotificationChannelStrategyMap(Map<NotificationChannel, NotificationChannelStrategy> notificationChannelStrategyMap)
-