|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 | |
---|---|
java.lang.String |
execute()
|
java.lang.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(java.lang.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 MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public java.lang.String execute()
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
public java.lang.Object getBean()
getBean
in interface Beanable
public boolean isPermitted()
validate()
so that JSON responses include the error messages.
isPermitted
in class ConfluenceActionSupport
public void setContentId(long contentId)
public void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest
in interface com.opensymphony.webwork.interceptor.ServletRequestAware
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setFileUploadManager(FileUploadManager fileUploadManager)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setResponseFormat(java.lang.String responseFormat)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |