Class AbstractNotificationChildPlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
- org.exoplatform.commons.api.notification.plugin.AbstractNotificationChildPlugin
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public abstract class AbstractNotificationChildPlugin extends BaseNotificationPlugin
-
-
Constructor Summary
Constructors Constructor Description AbstractNotificationChildPlugin(org.exoplatform.container.xml.InitParams initParams)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringgetLanguage(NotificationInfo message)List<String>getParentPluginIds()Gets the parents's idgroovy.text.TemplategetTemplateEngine()Get TemplateEngine of pluginStringgetTemplatePath()abstract StringmakeContent(NotificationContext ctx)protected NotificationInfomakeNotification(NotificationContext ctx)Makes MessageInfo from given information what keep inside NotificationContextvoidsetTemplateEngine(groovy.text.Template engine)Set TemplateEngine for pluginvoidsetTemplatePath(String templatePath)-
Methods inherited from class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
buildNotification, end, getId, getKey, getOrganizationService, getPluginConfigs, isOldPlugin, isValid, setOldPlugin, start
-
-
-
-
Method Detail
-
getLanguage
protected String getLanguage(NotificationInfo message)
- Parameters:
message-- Returns:
-
makeNotification
protected NotificationInfo makeNotification(NotificationContext ctx)
Description copied from class:BaseNotificationPluginMakes MessageInfo from given information what keep inside NotificationContext- Specified by:
makeNotificationin classBaseNotificationPlugin- Returns:
-
makeContent
public abstract String makeContent(NotificationContext ctx)
-
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
-
getTemplatePath
public String getTemplatePath()
-
setTemplatePath
public void setTemplatePath(String templatePath)
-
-