Class AbstractNotificationPlugin

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin

    public abstract class AbstractNotificationPlugin
    extends BaseNotificationPlugin
    • Constructor Detail

      • AbstractNotificationPlugin

        public AbstractNotificationPlugin​(org.exoplatform.container.xml.InitParams initParams)
    • Method Detail

      • makeMessage

        protected abstract MessageInfo makeMessage​(NotificationContext ctx)
        Makes the MessageInfor from given NotificationMessage what keep inside NotificationContext
        Parameters:
        ctx -
        Returns:
      • makeDigest

        protected abstract boolean makeDigest​(NotificationContext ctx,
                                              Writer writer)
        Makes the Digest message from given NotificationMessage what keep inside NotificationContext
        Parameters:
        ctx -
        writer -
        Returns:
      • buildDigest

        public boolean buildDigest​(NotificationContext ctx,
                                   Writer writer)
        Makes digest message
        Parameters:
        ctx -
        writer -
        Returns:
      • 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