Class CalendarSharedTemplateBuilder

java.lang.Object
org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
org.exoplatform.agenda.notification.builder.CalendarSharedTemplateBuilder

public class CalendarSharedTemplateBuilder extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
Renders the "a calendar was shared with you" notification (EXO-90357), for the mail, on-site and push channels alike: everything the template needs was stored on the notification when it was made, so nothing is read again here.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CalendarSharedTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification)
    Builds the builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    groovy.text.Template
    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

    buildMessage, getLanguage, getNotificationToStore, getOrganizationService, setTemplateEngine

    Methods inherited from class java.lang.Object

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

    • CalendarSharedTemplateBuilder

      public CalendarSharedTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification)
      Builds the builder.
      Parameters:
      templateProvider - the channel's provider, holding the template path
      container - the portal container
      key - the plugin key
      pushNotification - whether the subject carries the link, as a push does
  • Method Details

    • getTemplateEngine

      public groovy.text.Template getTemplateEngine()
      Overrides:
      getTemplateEngine 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