public class DefaultNotificationService extends java.lang.Object implements NotificationService
| Constructor and Description |
|---|
DefaultNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChannelValue(NotificationChannel channel,
CustomerModel customer)
return the notificaiton channel's value
|
java.util.Map<NotificationChannel,NotificationChannelStrategy> |
getNotificationChannelStrategyMap() |
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 |
setNotificationChannelStrategyMap(java.util.Map<NotificationChannel,NotificationChannelStrategy> notificationChannelStrategyMap) |
void |
setNotificationLanguageStrategyMap(java.util.Map<java.lang.String,NotificationLanguageStrategy> notificationLanguageStrategyMap) |
void |
setProcessorRegistry(ProcessorMappingRegistry processorRegistry) |
public java.lang.String getChannelValue(NotificationChannel channel, CustomerModel customer)
NotificationServicegetChannelValue in interface NotificationServicechannel - the notification channelcustomer - the customer want to get the channel valuepublic 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)
public java.util.Map<NotificationChannel,NotificationChannelStrategy> getNotificationChannelStrategyMap()
public void setNotificationChannelStrategyMap(java.util.Map<NotificationChannel,NotificationChannelStrategy> notificationChannelStrategyMap)
Copyright © 2018 SAP SE. All Rights Reserved.