Class RemovePagePermissionAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
PageAware, WebInterface, 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 RemovePagePermissionAction extends AbstractPageAwareAction
See Also:
  • Constructor Details

    • RemovePagePermissionAction

      public RemovePagePermissionAction()
  • Method Details

    • setPermissionId

      public void setPermissionId(long permissionId)
    • setRemoveAll

      public void setRemoveAll(boolean removeAll)
    • getReturnPath

      public String getReturnPath()
    • setReturnPath

      public void setReturnPath(String returnPath)
    • execute

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

      public boolean isViewPermissionRequired()
      Since space admin's are allowed to remove permissions without needing to view the page no view permission checks need to occur. Permissions should be handled by the isPermitted() method
      Specified by:
      isViewPermissionRequired in interface PageAware
      Overrides:
      isViewPermissionRequired in class AbstractPageAwareAction
      Returns:
      false
    • isPermitted

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