Class GetPagePermissionsAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
Beanable, PageAware, WebInterface, SpaceAware, Spaced, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class GetPagePermissionsAction extends AbstractPageAwareAction implements Beanable, SpaceAware
See Also:
  • Field Details

  • Constructor Details

    • GetPagePermissionsAction

      public GetPagePermissionsAction()
  • Method Details

    • isPermitted

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

      @Deprecated public String getPagePermissions() throws Exception
      Deprecated.
      since 5.10, use getContentPermissions()
      Throws:
      Exception
    • getContentPermissions

      public String getContentPermissions() throws Exception
      Throws:
      Exception
    • getEditPagePermissions

      @Deprecated public String getEditPagePermissions() throws Exception
      Deprecated.
      since 5.10, use getContentPermissions()
      Throws:
      Exception
    • getBean

      public Map<String,Object> getBean()
      Specified by:
      getBean in interface Beanable
    • setContentPermissionManager

      public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
      Overrides:
      setContentPermissionManager in class AbstractPageAwareAction
    • setPageManager

      public void setPageManager(PageManager pageManager)
    • 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.
    • 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
    • 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
    • setParentPageId

      public void setParentPageId(long parentPageId)
    • setParentPageTitle

      public void setParentPageTitle(String parentPageTitle)
    • setContentEntityManager

      public void setContentEntityManager(ContentEntityManager contentEntityManager)
    • setContentId

      public void setContentId(long contentId)