Class BaseHandler.IfSectionHandler

java.lang.Object
ch.autumo.beetroot.handler.BaseHandler.IfSectionHandler
Enclosing class:
BaseHandler

protected final class BaseHandler.IfSectionHandler extends Object
State handler for role, entity and action "IFs" for the overall, the template and the template sub-resource layer. Note: Authorization cascades in the HTML views only works in the order: role -> entity -> action. Nasty stuff.
  • Constructor Details

    • IfSectionHandler

      protected IfSectionHandler(BaseHandler handler)
      Create an "if"-section handler.
      Parameters:
      handler - base handler
  • Method Details

    • continueRemoval

      protected boolean continueRemoval(String text, Session userSession, String layer)
      Continue removal of lines?
      Parameters:
      text - current line
      userSession - user session
      layer - 'overall', 'template' or 'sub-resource'
      Returns:
      true if removal should continue, otherwise false