Interface NotificationService

All Known Implementing Classes:
DefaultNotificationService

public interface NotificationService
notify customer via EMAIL/SMS
  • 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 type
      customer - one customer you want to notify
      dataMap - 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 type
      customer - one customer you want to notify
      channelSet - assigned channels
      dataMap - some models needed by VM to renderer
    • getChannelValue

      String getChannelValue(NotificationChannel channel, CustomerModel customer)
      return the notificaiton channel's value
      Parameters:
      channel - the notification channel
      customer - the customer want to get the channel value
      Returns:
      return the notification channel's value for customer