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 Details

    • AbstractNotificationChildPlugin

      public AbstractNotificationChildPlugin(org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • getParentPluginIds

      public List<String> getParentPluginIds()
      Gets the parents's id
      Returns:
    • getLanguage

      protected String getLanguage(NotificationInfo message)
      Parameters:
      message -
      Returns:
    • getUserIdentity

      protected org.exoplatform.services.security.Identity getUserIdentity(NotificationInfo message)
    • makeNotification

      protected NotificationInfo makeNotification(NotificationContext ctx)
      Description copied from class: BaseNotificationPlugin
      Makes MessageInfo from given information what keep inside NotificationContext
      Specified by:
      makeNotification in class BaseNotificationPlugin
      Parameters:
      ctx -
      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)