public class DefaultSiteMessageService extends java.lang.Object implements SiteMessageService
SiteMessageService| Constructor and Description |
|---|
DefaultSiteMessageService() |
public SearchPageData<SiteMessageForCustomerModel> getPaginatedMessagesForType(CustomerModel customer, SiteMessageType type, SearchPageData searchPageData)
SiteMessageServicegetPaginatedMessagesForType in interface SiteMessageServicecustomer - the specific customertype - the given message typesearchPageData - pagination parameterspublic SearchPageData<SiteMessageForCustomerModel> getPaginatedMessagesForCustomer(CustomerModel customer, SearchPageData searchPageData)
SiteMessageServicegetPaginatedMessagesForCustomer in interface SiteMessageServicecustomer - the specific customersearchPageData - pagination parameterspublic SiteMessageModel createMessage(java.lang.String title, java.lang.String content, SiteMessageType type, ItemModel externalItem, NotificationType notificationType, java.util.Locale locale)
SiteMessageServicecreateMessage in interface SiteMessageServicetitle - the message titlecontent - the message contenttype - the message typeexternalItem - the related item modelnotificationType - the notification typelocale - the locale, if null, default current localepublic java.util.List<SiteMessageForCustomerModel> getSiteMessagesForCustomer(CustomerModel customer)
SiteMessageServicegetSiteMessagesForCustomer in interface SiteMessageServicecustomer - the specific customerprotected java.lang.String formatContent(SiteMessageType type, java.lang.String content)
protected SiteMessageDao getSiteMessageDao()
public void setSiteMessageDao(SiteMessageDao siteMessageDao)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected I18NService getI18nService()
public void setI18nService(I18NService i18nService)
protected KeyGenerator getSiteMessageUidGenerator()
public void setSiteMessageUidGenerator(KeyGenerator siteMessageUidGenerator)
protected java.util.Map<SiteMessageType,SiteMessageContentFormatter> getSiteMessageContentFormatters()
public void setSiteMessageContentFormatters(java.util.Map<SiteMessageType,SiteMessageContentFormatter> siteMessageContentFormatters)
Copyright © 2018 SAP SE. All Rights Reserved.