|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AttachFileAction
public class AttachFileAction
Upload attachments via a multipart request. Typically used via AJAX.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
|---|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
| Fields inherited from class com.opensymphony.xwork.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
AttachFileAction()
|
|
| Method Summary | |
|---|---|
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(javax.servlet.http.HttpServletRequest request)
|
void |
validate()
|
| Methods inherited from class com.opensymphony.xwork.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachFileAction()
| Method Detail |
|---|
public void validate()
validate in interface MessageHolderAwarevalidate in interface com.opensymphony.xwork.Validateablevalidate in class com.opensymphony.xwork.ActionSupportpublic String execute()
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportpublic Object getBean()
getBean in interface Beanablepublic boolean isPermitted()
validate() so that JSON responses include the error messages.
isPermitted in class ConfluenceActionSupportpublic void setContentId(long contentId)
public void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest in interface com.opensymphony.webwork.interceptor.ServletRequestAwarepublic void setAttachmentManager(AttachmentManager attachmentManager)
public void setFileUploadManager(FileUploadManager fileUploadManager)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setResponseFormat(String responseFormat)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||