Class BaseNotificationPlugin

    • Constructor Detail

      • BaseNotificationPlugin

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

      • isOldPlugin

        public boolean isOldPlugin()
        Determines the plugin is old or new mechanism The target adapts the old plugin from PLF 4.1 to work well new mechanism
        Returns:
      • setOldPlugin

        public void setOldPlugin​(boolean isOldPlugin)
        Sets the flag value TRUE/FALSE The target adapts the old plugin on PLF 4.1 to work well new mechanism
        Parameters:
        isOldPlugin -
      • getId

        public abstract String getId()
        Gets Notification Plug in key
        Returns:
      • isValid

        public abstract boolean isValid​(NotificationContext ctx)
        Check, for each plugin, if we will send notification
        Returns:
      • makeNotification

        protected abstract NotificationInfo makeNotification​(NotificationContext ctx)
        Makes MessageInfo from given information what keep inside NotificationContext
        Parameters:
        ctx -
        Returns:
      • getKey

        public PluginKey getKey()
        Creates the key for NotificationPlugin
        Returns:
      • getOrganizationService

        protected org.exoplatform.services.organization.OrganizationService getOrganizationService()