Class ReadOnlyAccessAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
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 ReadOnlyAccessAction extends ConfluenceActionSupport
This action is responsible for returning a JSON string or a Read Only page depending on the request's Accept header or path.
Since:
6.9.0
See Also:
  • Constructor Details

    • ReadOnlyAccessAction

      public ReadOnlyAccessAction()
  • Method Details

    • execute

      @XsrfProtectionExcluded public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getSpace

      public Space getSpace()
    • setSpaceManager

      public void setSpaceManager(SpaceManager spaceManager)
    • getTitle

      public String getTitle()
    • getMessage

      public String getMessage()
    • getCssClass

      public String getCssClass()
    • withServletRequest

      @Deprecated(forRemoval=true) public void withServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.1, no replacement.