Class WebTemplateProvider.LikeTemplateBuilder

java.lang.Object
org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
org.exoplatform.social.notification.channel.template.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).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LikeTemplateBuilder

      public LikeTemplateBuilder()
  • Method Details

    • 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