public class DefaultNotificationService extends java.lang.Object implements NotificationService
| Constructor and Description |
|---|
DefaultNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,NotificationLanguageStrategy> |
getNotificationLanguageStrategyMap() |
protected java.util.Set<NotificationChannel> |
getSupportedChannel(CustomerModel customer) |
protected boolean |
isSupportedByCustomer(CustomerModel customer,
NotificationChannel ch) |
void |
notifyCustomer(NotificationType notificationType,
CustomerModel customer,
java.util.Map<java.lang.String,? extends ItemModel> dataMap)
Send notification to customer using channels from customer's preferences
|
void |
notifyCustomer(NotificationType notificationType,
CustomerModel customer,
java.util.Set<NotificationChannel> channelSet,
java.util.Map<java.lang.String,? extends ItemModel> dataMap)
Send notification to customer using specific channels
|
protected void |
notifyCustomerByChannelSet(NotificationType notificationType,
CustomerModel customer,
java.util.Map<java.lang.String,? extends ItemModel> dataMap,
java.util.Set<NotificationChannel> channelSet) |
protected void |
processNotification(NotificationChannel channel,
CustomerModel customer,
Processor processor,
java.util.Map<java.lang.String,? extends ItemModel> dataMap) |
void |
setNotificationLanguageStrategyMap(java.util.Map<java.lang.String,NotificationLanguageStrategy> notificationLanguageStrategyMap) |
void |
setProcessorRegistry(ProcessorMappingRegistry processorRegistry) |
public void notifyCustomer(NotificationType notificationType, CustomerModel customer, java.util.Map<java.lang.String,? extends ItemModel> dataMap)
NotificationServicenotifyCustomer in interface NotificationServicenotificationType - one specific typecustomer - one customer you want to notifydataMap - some models needed by VM file to rendererpublic void notifyCustomer(NotificationType notificationType, CustomerModel customer, java.util.Set<NotificationChannel> channelSet, java.util.Map<java.lang.String,? extends ItemModel> dataMap)
NotificationServicenotifyCustomer in interface NotificationServicenotificationType - one specific typecustomer - one customer you want to notifychannelSet - assigned channelsdataMap - some models needed by VM to rendererprotected void notifyCustomerByChannelSet(NotificationType notificationType, CustomerModel customer, java.util.Map<java.lang.String,? extends ItemModel> dataMap, java.util.Set<NotificationChannel> channelSet)
protected void processNotification(NotificationChannel channel, CustomerModel customer, Processor processor, java.util.Map<java.lang.String,? extends ItemModel> dataMap)
protected java.util.Set<NotificationChannel> getSupportedChannel(CustomerModel customer)
protected boolean isSupportedByCustomer(CustomerModel customer, NotificationChannel ch)
public void setProcessorRegistry(ProcessorMappingRegistry processorRegistry)
protected java.util.Map<java.lang.String,NotificationLanguageStrategy> getNotificationLanguageStrategyMap()
public void setNotificationLanguageStrategyMap(java.util.Map<java.lang.String,NotificationLanguageStrategy> notificationLanguageStrategyMap)
Copyright © 2017 SAP SE. All Rights Reserved.