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
ConstructorsConstructorDescriptionCalendarEditedTemplateBuilder(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 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
-
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 pathcontainer- the portal containerkey- the plugin keypushNotification- whether the subject carries the link, as a push does
-
-
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
-