public abstract class AbstractTemplateBuilder extends Object
| Constructor and Description |
|---|
AbstractTemplateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
buildDigest(NotificationContext ctx,
Writer writer)
Makes digest message
|
MessageInfo |
buildMessage(NotificationContext ctx)
Makes massage
|
protected String |
getLanguage(NotificationInfo notif) |
NotificationInfo |
getNotificationToStore(NotificationInfo notificationInfo) |
protected org.exoplatform.services.organization.OrganizationService |
getOrganizationService() |
groovy.text.Template |
getTemplateEngine()
Get TemplateEngine of plugin
|
protected abstract boolean |
makeDigest(NotificationContext ctx,
Writer writer)
Makes the Digest message from given NotificationMessage what keep inside NotificationContext
|
protected abstract MessageInfo |
makeMessage(NotificationContext ctx)
Makes the MessageInfor from given NotificationMessage what keep inside NotificationContext
|
void |
setTemplateEngine(groovy.text.Template engine)
Set TemplateEngine for plugin
|
protected abstract MessageInfo makeMessage(NotificationContext ctx)
ctx - protected abstract boolean makeDigest(NotificationContext ctx, Writer writer)
ctx - writer - public MessageInfo buildMessage(NotificationContext ctx)
ctx - public boolean buildDigest(NotificationContext ctx, Writer writer)
ctx - writer - protected String getLanguage(NotificationInfo notif)
notif - protected org.exoplatform.services.organization.OrganizationService getOrganizationService()
public groovy.text.Template getTemplateEngine()
public void setTemplateEngine(groovy.text.Template engine)
engine - the TemplateEngine to setpublic NotificationInfo getNotificationToStore(NotificationInfo notificationInfo)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.