Class PerkStoreTemplateBuilder
java.lang.Object
org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
org.exoplatform.perkstore.notification.builder.PerkStoreTemplateBuilder
public class PerkStoreTemplateBuilder
extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionPerkStoreTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification) PerkStoreTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean orderNotification, boolean pushNotification) -
Method Summary
Modifier and TypeMethodDescriptiongroovy.text.Templateorg.exoplatform.commons.api.notification.channel.template.TemplateProviderprotected booleanmakeDigest(org.exoplatform.commons.api.notification.NotificationContext ctx, Writer writer) protected 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
buildDigest, buildMessage, getLanguage, getNotificationToStore, getOrganizationService, setTemplateEngine
-
Constructor Details
-
PerkStoreTemplateBuilder
public PerkStoreTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean pushNotification) -
PerkStoreTemplateBuilder
public PerkStoreTemplateBuilder(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.container.ExoContainer container, org.exoplatform.commons.api.notification.model.PluginKey key, boolean orderNotification, boolean pushNotification)
-
-
Method Details
-
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
-
makeDigest
protected boolean makeDigest(org.exoplatform.commons.api.notification.NotificationContext ctx, Writer writer) - Specified by:
makeDigestin classorg.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-
getPerkStoreService
-
getTemplateEngine
public groovy.text.Template getTemplateEngine()- Overrides:
getTemplateEnginein classorg.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-
getTemplateProvider
public org.exoplatform.commons.api.notification.channel.template.TemplateProvider getTemplateProvider()
-