Class ParticipationConfirmedTemplateBuilder

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

public class ParticipationConfirmedTemplateBuilder extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
Builds the "Participation confirmation" message of one channel. A guest without an account is told by mail only, the channel the invitation reached them through: the other channels build nothing for them.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    groovy.text.Template
     
    org.exoplatform.commons.api.notification.channel.template.TemplateProvider
     
    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

    • ParticipationConfirmedTemplateBuilder

      public ParticipationConfirmedTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification, boolean mailNotification)
      Parameters:
      templateProvider - the provider of the channel's template
      container - the portal container
      key - the notification's plugin key
      pushNotification - whether the channel is the mobile push, whose subject is the event's link
      mailNotification - whether the channel is the mail, the only one a guest is told through
  • 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
    • getTemplateProvider

      public org.exoplatform.commons.api.notification.channel.template.TemplateProvider getTemplateProvider()