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
ConstructorsConstructorDescriptionCapacityReachedTemplateBuilder(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 TypeMethodDescriptiongroovy.text.Templateprotected org.exoplatform.commons.api.notification.model.MessageInfomakeMessage(org.exoplatform.commons.api.notification.NotificationContext ctx) Methods inherited from class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
buildMessage, getLanguage, getNotificationToStore, getOrganizationService, setTemplateEngine
-
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 templatecontainer- the portal containerkey- the notification's plugin keypushNotification- whether the channel is the mobile push, whose subject is the event's link
-
-
Method Details
-
getTemplateEngine
public groovy.text.Template getTemplateEngine()- Overrides:
getTemplateEnginein classorg.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:
makeMessagein classorg.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-