Class WebTemplateProvider.LikeTemplateBuilder

  • Enclosing class:
    WebTemplateProvider

    public class WebTemplateProvider.LikeTemplateBuilder
    extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
    Template builder for likes The same builder it used for both like activity and like comment. A inner class (instead of an anonymous class like for others builders) because the same logic is used for like activity and like comment, but each plugin must have its own instance of builder (builder contents are not the same since the templates ca be different).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.exoplatform.commons.api.notification.model.NotificationInfo getNotificationToStore​(org.exoplatform.commons.api.notification.model.NotificationInfo notification)  
      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)  
      • Methods inherited from class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder

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

      • LikeTemplateBuilder

        public LikeTemplateBuilder()
    • Method Detail

      • getNotificationToStore

        public org.exoplatform.commons.api.notification.model.NotificationInfo getNotificationToStore​(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
        Overrides:
        getNotificationToStore in class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
      • 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
      • 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