Class AbstractTemplateBuilder
java.lang.Object
org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
- Direct Known Subclasses:
PluginTemplateBuilderAdapter
Created by The eXo Platform SAS
Author : eXoPlatform
thanhvc@exoplatform.com
Dec 13, 2014
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuildDigest(NotificationContext ctx, Writer writer) Makes digest messageMakes massageprotected StringgetLanguage(NotificationInfo notif) getNotificationToStore(NotificationInfo notificationInfo) protected org.exoplatform.services.organization.OrganizationServicegroovy.text.TemplateGet TemplateEngine of pluginprotected abstract booleanmakeDigest(NotificationContext ctx, Writer writer) Makes the Digest message from given NotificationMessage what keep inside NotificationContextprotected 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:
-
makeDigest
Makes the Digest message from given NotificationMessage what keep inside NotificationContext- Parameters:
ctx-writer-- Returns:
-
buildMessage
Makes massage- Parameters:
ctx-- Returns:
-
buildDigest
Makes digest message- Parameters:
ctx-writer-- 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
-