Class AttachFileAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
Beanable, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class AttachFileAction extends ConfluenceActionSupport implements Beanable
Upload attachments via a multipart request. Typically used via AJAX.
See Also:
  • Constructor Details

    • AttachFileAction

      public AttachFileAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface MessageHolderAware
      Specified by:
      validate in interface com.opensymphony.xwork2.Validateable
      Overrides:
      validate in class com.opensymphony.xwork2.ActionSupport
    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
    • getBean

      public Object getBean()
      Specified by:
      getBean in interface Beanable
    • isPermitted

      public boolean isPermitted()
      Permission checks are handled in validate() so that JSON responses include the error messages.
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • setContentId

      public void setContentId(long contentId)
    • 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.
    • setAttachmentManager

      public void setAttachmentManager(AttachmentManager attachmentManager)
    • setFileUploadManager

      public void setFileUploadManager(FileUploadManager fileUploadManager)
    • setContentEntityManager

      public void setContentEntityManager(ContentEntityManager contentEntityManager)
    • setResponseFormat

      public void setResponseFormat(String responseFormat)
    • setJsonator

      public void setJsonator(Jsonator<?> jsonator)
    • getJsonator

      public Jsonator<?> getJsonator()