Interface NotificationService
- All Known Implementing Classes:
DefaultNotificationService
public interface NotificationService
notify customer via EMAIL/SMS
-
Method Summary
Modifier and TypeMethodDescriptiongetChannelValue(NotificationChannel channel, CustomerModel customer) return the notificaiton channel's valuevoidnotifyCustomer(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 channels
-
Method Details
-
notifyCustomer
void notifyCustomer(NotificationType notificationType, CustomerModel customer, Map<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, Set<NotificationChannel> channelSet, Map<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
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
-