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
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNotificationChildPlugin(org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLanguage(NotificationInfo message) Gets the parents's idgroovy.text.TemplateGet TemplateEngine of pluginabstract Stringprotected NotificationInfoMakes 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, startMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
AbstractNotificationChildPlugin
public AbstractNotificationChildPlugin(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
getParentPluginIds
Gets the parents's id- Returns:
-
getLanguage
- Parameters:
message-- Returns:
-
makeNotification
Description copied from class:BaseNotificationPluginMakes MessageInfo from given information what keep inside NotificationContext- Specified by:
makeNotificationin classBaseNotificationPlugin- Returns:
-
makeContent
-
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
-
setTemplatePath
-