Class AbstractNotificationPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
org.exoplatform.commons.api.notification.plugin.AbstractNotificationPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNotificationPlugin(org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionMakes massagegetKey()Creates the key for NotificationPluginprotected StringgetLanguage(NotificationInfo message) protected org.exoplatform.services.organization.OrganizationServicegroovy.text.TemplateGet TemplateEngine of pluginprotected abstract MessageInfoMakes the MessageInfor from given NotificationMessage what keep inside NotificationContextvoidsetTemplateEngine(groovy.text.Template engine) Set TemplateEngine for pluginMethods inherited from class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
buildNotification, end, getId, getPluginConfigs, isOldPlugin, isValid, makeNotification, setOldPlugin, startMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
AbstractNotificationPlugin
public AbstractNotificationPlugin(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
makeMessage
Makes the MessageInfor from given NotificationMessage what keep inside NotificationContext- Parameters:
ctx-- Returns:
-
buildMessage
Makes massage- Parameters:
ctx-- Returns:
-
getKey
Creates the key for NotificationPlugin- Overrides:
getKeyin classBaseNotificationPlugin- Returns:
-
getLanguage
- Parameters:
message-- Returns:
-
getOrganizationService
protected org.exoplatform.services.organization.OrganizationService getOrganizationService()- Overrides:
getOrganizationServicein classBaseNotificationPlugin
-
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
-