Class CalendarEditedTemplateBuilder

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

public class CalendarEditedTemplateBuilder extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
Renders the "a colleague changed something in your calendar" notification (EXO-90378), 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 — a deleted event has nothing left to read, and the three kinds of change must read alike.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CalendarEditedTemplateBuilder(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

    • CalendarEditedTemplateBuilder

      public CalendarEditedTemplateBuilder(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