public class

AttachFileAction

extends ConfluenceActionSupport
implements Beanable ServletRequestAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.pages.actions.AttachFileAction

Class Overview

Upload attachments via a multipart request. Typically used via AJAX.

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
AttachFileAction()
Public Methods
String execute()
Object getBean()
boolean isPermitted()
Permission checks are handled in validate() so that JSON responses include the error messages.
void setAttachmentManager(AttachmentManager attachmentManager)
void setContentEntityManager(ContentEntityManager contentEntityManager)
void setContentId(long contentId)
void setFileUploadManager(FileUploadManager fileUploadManager)
void setResponseFormat(String responseFormat)
void setServletRequest(HttpServletRequest request)
void validate()
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.core.Beanable
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.opensymphony.webwork.interceptor.ServletRequestAware
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Public Constructors

public AttachFileAction ()

Public Methods

public String execute ()

public Object getBean ()

public boolean isPermitted ()

Permission checks are handled in validate() so that JSON responses include the error messages.

public void setAttachmentManager (AttachmentManager attachmentManager)

public void setContentEntityManager (ContentEntityManager contentEntityManager)

public void setContentId (long contentId)

public void setFileUploadManager (FileUploadManager fileUploadManager)

public void setResponseFormat (String responseFormat)

public void setServletRequest (HttpServletRequest request)

public void validate ()