Interface NotificationService
-
- All Known Implementing Classes:
DefaultNotificationService
public interface NotificationService
notify customer via EMAIL/SMS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getChannelValue(NotificationChannel channel, CustomerModel customer)
return the notificaiton channel's valuevoid
notifyCustomer(NotificationType notificationType, CustomerModel customer, java.util.Map<java.lang.String,? extends ItemModel> dataMap)
Send notification to customer using channels from customer's preferencesvoid
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
-
-
-
Method Detail
-
notifyCustomer
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- Parameters:
notificationType
- one specific typecustomer
- one customer you want to notifydataMap
- some models needed by VM file to renderer
-
notifyCustomer
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- Parameters:
notificationType
- one specific typecustomer
- one customer you want to notifychannelSet
- assigned channelsdataMap
- some models needed by VM to renderer
-
getChannelValue
java.lang.String getChannelValue(NotificationChannel channel, CustomerModel customer)
return the notificaiton channel's value- Parameters:
channel
- the notification channelcustomer
- the customer want to get the channel value- Returns:
- return the notification channel's value for customer
-
-