Class ReadOnlyAccessAction

  • All Implemented Interfaces:
    WebInterface, MessageHolderAware, com.opensymphony.webwork.interceptor.ServletRequestAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable

    public class ReadOnlyAccessAction
    extends ConfluenceActionSupport
    implements com.opensymphony.webwork.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:
    Serialized Form
    • Constructor Detail

      • ReadOnlyAccessAction

        public ReadOnlyAccessAction()
    • Method Detail

      • execute

        @XsrfProtectionExcluded
        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork.Action
        Overrides:
        execute in class com.opensymphony.xwork.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 com.opensymphony.webwork.interceptor.ServletRequestAware