Class AbstractTemplateBuilder
java.lang.Object
org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
- Direct Known Subclasses:
PluginTemplateBuilderAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMakes massageprotected StringgetLanguage(NotificationInfo notif) getNotificationToStore(NotificationInfo notificationInfo) protected org.exoplatform.services.organization.OrganizationServicegroovy.text.TemplateGet TemplateEngine of pluginprotected abstract MessageInfoMakes the MessageInfor from given NotificationMessage what keep inside NotificationContextvoidsetTemplateEngine(groovy.text.Template engine) Set TemplateEngine for plugin
-
Constructor Details
-
AbstractTemplateBuilder
public AbstractTemplateBuilder()
-
-
Method Details
-
makeMessage
Makes the MessageInfor from given NotificationMessage what keep inside NotificationContext- Parameters:
ctx-- Returns:
-
buildMessage
Makes massage- Parameters:
ctx-- Returns:
-
getLanguage
- Parameters:
notif-- Returns:
-
getOrganizationService
protected org.exoplatform.services.organization.OrganizationService getOrganizationService() -
getTemplateEngine
public groovy.text.Template getTemplateEngine()Get TemplateEngine of plugin- Returns:
- the TemplateEngine
-
setTemplateEngine
public void setTemplateEngine(groovy.text.Template engine) Set TemplateEngine for plugin- Parameters:
engine- the TemplateEngine to set
-
getNotificationToStore
-