Class CategoryActionHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class CategoryActionHandler extends JcmsJsonActionHandler
Action handler for ctxmenu category operations (ex-JSP logic) Expected params: - ctxId: category id - ctx: addsub|addsib|rename|delete|refresh - value: string value (names, rename label, etc.) - displayChildren: boolean (optional)
Since:
jcms-11.0.0
  • Constructor Details

    • CategoryActionHandler

      public CategoryActionHandler()
  • 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 JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getCtxCategory

      public Category getCtxCategory()
    • setCtxId

      public void setCtxId(String ctxId)
    • setCtx

      public void setCtx(String ctx)
    • setValue

      public void setValue(String value)
    • setDisplayChildren

      public void setDisplayChildren(boolean displayChildren)
    • isOpCtxAction

      public boolean isOpCtxAction()
    • setOpCtxAction

      public void setOpCtxAction(boolean opCtxAction)