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 TypeMethodDescriptionbooleanbuildDigest(NotificationContext ctx, Writer writer) Makes digest messageMakes massagegetKey()Creates the key for NotificationPluginprotected StringgetLanguage(NotificationInfo message) protected org.exoplatform.services.organization.OrganizationServicegroovy.text.TemplateGet TemplateEngine of pluginprotected abstract booleanmakeDigest(NotificationContext ctx, Writer writer) Makes the Digest message from given NotificationMessage what keep inside NotificationContextprotected 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:
-
makeDigest
Makes the Digest message from given NotificationMessage what keep inside NotificationContext- Parameters:
ctx-writer-- Returns:
-
buildMessage
Makes massage- Parameters:
ctx-- Returns:
-
buildDigest
Makes digest message- Parameters:
ctx-writer-- 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
-