Interface SiteMessageService

  • All Known Implementing Classes:
    DefaultSiteMessageService

    public interface SiteMessageService
    Service to provide methods for site message
    • Method Detail

      • createMessage

        @Deprecated
        SiteMessageModel createMessage​(java.lang.String title,
                                       java.lang.String content,
                                       SiteMessageType type,
                                       ItemModel externalItem,
                                       NotificationType notificationType,
                                       java.util.Locale locale)
        Deprecated.
        since 1905, replace with createMessage(String title, String content, SiteMessageType type, ItemModel externalItem, NotificationType notificationType)
        Creates a site message by given title, link, content, message type, notification type and locale
        Parameters:
        title - the message title
        content - the message content
        type - the message type
        externalItem - the related item model
        notificationType - the notification type
        locale - the locale, if null, default current locale
        Returns:
        the created message model
      • createMessage

        SiteMessageModel createMessage​(java.lang.String subject,
                                       java.lang.String body,
                                       SiteMessageType type,
                                       ItemModel externalItem,
                                       NotificationType notificationType)
        Creates a site message by given subject, link, body, message type, notification type and locale
        Parameters:
        subject - the message subject
        body - the message body
        type - the message type
        externalItem - the related item model
        notificationType - the notification type
        Returns:
        the created message model
      • getSiteMessagesForCustomer

        java.util.List<SiteMessageForCustomerModel> getSiteMessagesForCustomer​(CustomerModel customer)
        Gets all site message of the customer
        Parameters:
        customer - the specific customer
        Returns:
        list of site message for customer