Class TemplateBuilder


  • public class TemplateBuilder
    extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateBuilder​(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.PortalContainer container, boolean pushNotification)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean makeDigest​(org.exoplatform.commons.api.notification.NotificationContext ctx, Writer writer)  
      protected org.exoplatform.commons.api.notification.model.MessageInfo makeMessage​(org.exoplatform.commons.api.notification.NotificationContext ctx)  
      protected void setLastUpdateDate​(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String language, org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)  
      • Methods inherited from class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder

        buildDigest, buildMessage, getLanguage, getNotificationToStore, getOrganizationService, getTemplateEngine, setTemplateEngine
    • Constructor Detail

      • TemplateBuilder

        public TemplateBuilder​(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider,
                               org.exoplatform.container.PortalContainer container,
                               boolean pushNotification)
    • Method Detail

      • makeMessage

        protected org.exoplatform.commons.api.notification.model.MessageInfo makeMessage​(org.exoplatform.commons.api.notification.NotificationContext ctx)
        Specified by:
        makeMessage in class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
      • setLastUpdateDate

        protected void setLastUpdateDate​(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
                                         String language,
                                         org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext)
      • makeDigest

        protected boolean makeDigest​(org.exoplatform.commons.api.notification.NotificationContext ctx,
                                     Writer writer)
        Specified by:
        makeDigest in class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder