Interface NotificationService

    • 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 type
        customer - one customer you want to notify
        dataMap - 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 type
        customer - one customer you want to notify
        channelSet - assigned channels
        dataMap - 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 channel
        customer - the customer want to get the channel value
        Returns:
        return the notification channel's value for customer