Class AlertTopbarHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class AlertTopbarHandler extends AlertHandler
Handler to display alerts in topbar menu.
Since:
jcms-10.0.0
Author:
Sylvain Devaux
  • Field Details

  • Constructor Details

    • AlertTopbarHandler

      public AlertTopbarHandler()
  • Method Details

    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class AlertHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • setAlertTopbarMoreDate

      public void setAlertTopbarMoreDate(String v)
    • getMoreAlertParams

      public String getMoreAlertParams()
      Description copied from class: AlertHandler
      Compute the AJAX parameters for the AJAX "more" button
      Overrides:
      getMoreAlertParams in class AlertHandler
      Returns:
      a JSON map for data-jalios-options
    • getAlertTitle

      public String getAlertTitle(Alert alert)
    • isFirstLoad

      public boolean isFirstLoad()
      Returns:
      true the first time alerts menu is requested.
    • isMoreRequest

      public boolean isMoreRequest()
      Returns:
      true when "Load more alerts" action has been request
    • setAlertTopbarPager_pageSize

      public void setAlertTopbarPager_pageSize(String v)
    • getPageSize

      public int getPageSize()
      Overrides:
      getPageSize in class AlertHandler