Class ReadOnlyAccessAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.accessmode.actions.ReadOnlyAccessAction
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.ServletRequestAware, org.apache.struts2.interceptor.ServletRequestAware

public class ReadOnlyAccessAction extends ConfluenceActionSupport implements org.apache.struts2.interceptor.ServletRequestAware
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 com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.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()
    • setServletRequest

      public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAware