public abstract class AbstractNotificationPlugin extends BaseNotificationPlugin
| Constructor and Description |
|---|
AbstractNotificationPlugin(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
buildDigest(NotificationContext ctx,
Writer writer)
Makes digest message
|
MessageInfo |
buildMessage(NotificationContext ctx)
Makes massage
|
PluginKey |
getKey()
Creates the key for NotificationPlugin
|
protected String |
getLanguage(NotificationInfo message) |
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
|
buildNotification, end, getId, getPluginConfigs, isOldPlugin, isValid, makeNotification, setOldPlugin, startpublic AbstractNotificationPlugin(org.exoplatform.container.xml.InitParams initParams)
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 - public PluginKey getKey()
getKey in class BaseNotificationPluginprotected String getLanguage(NotificationInfo message)
message - protected org.exoplatform.services.organization.OrganizationService getOrganizationService()
getOrganizationService in class BaseNotificationPluginpublic groovy.text.Template getTemplateEngine()
public void setTemplateEngine(groovy.text.Template engine)
engine - the TemplateEngine to setCopyright © 2003–2018 eXo Platform SAS. All rights reserved.