Class CapacityReachedTemplateBuilder

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

public class CapacityReachedTemplateBuilder extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
Builds the "Event capacity reached" message of one channel: the event's title under the line saying it filled up, and the link that opens it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CapacityReachedTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification)
     
  • 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

    • CapacityReachedTemplateBuilder

      public CapacityReachedTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification)
      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
  • 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