Class ChildrenAction

All Implemented Interfaces:
JSONAction, PageAware, WebInterface, SpaceAware, Spaced, MessageHolderAware, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable
Direct Known Subclasses:
PageChildrenAction

public class ChildrenAction extends AbstractPageAwareAction implements SpaceAware, JSONAction
See Also:
  • Field Details

  • Constructor Details

    • ChildrenAction

      public ChildrenAction()
  • Method Details

    • setPageManager

      public void setPageManager(PageManager pageManager)
    • getPermittedChildren

      public List<Page> getPermittedChildren()
    • hasPermittedChildren

      public boolean hasPermittedChildren(Page page)
    • setPermissionCheckExemptions

      public void setPermissionCheckExemptions(PermissionCheckExemptions permissionCheckExemptions)
    • execute

      public String execute()
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
    • setNode

      public void setNode(String node)
    • isPageRequired

      public boolean isPageRequired()
      Description copied from interface: PageAware
      If the action requires that the page be set before being run, then it should return true to this method. If the action requires a page, but no page is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isPageRequired in interface PageAware
      Overrides:
      isPageRequired in class AbstractPageAwareAction
      Returns:
      true if the action requires a page in order to execute
    • getSpace

      public Space getSpace()
      Specified by:
      getSpace in interface Spaced
      Overrides:
      getSpace in class AbstractPageAwareAction
    • setSpace

      public void setSpace(Space space)
      Description copied from interface: SpaceAware
      IOC method for setting the space on the action. This is called from the interceptor
      Specified by:
      setSpace in interface SpaceAware
      Parameters:
      space - the space that the action will be working on.
    • isSpaceRequired

      public boolean isSpaceRequired()
      Description copied from interface: SpaceAware
      If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isSpaceRequired in interface SpaceAware
      Returns:
      true if the action requires a space in order to execute
    • getJSONString

      public String getJSONString()
      Specified by:
      getJSONString in interface JSONAction
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class AbstractPageAwareAction
    • isEditingPermitted

      protected boolean isEditingPermitted()
    • setContentPermissionManager

      public void setContentPermissionManager(ContentPermissionManagerInternal contentPermissionManager)