Class UploadAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.plugins.dragdrop.UploadAction
-
- 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
,org.apache.struts2.action.ServletRequestAware
,org.apache.struts2.interceptor.ServletRequestAware
public class UploadAction extends ConfluenceActionSupport implements Beanable, org.apache.struts2.interceptor.ServletRequestAware
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description UploadAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
Object
getBean()
Map<String,Object>
getJsonResult()
boolean
isPermitted()
void
setAttachmentManager(AttachmentManager attachmentManager)
void
setContentEntityManager(ContentEntityManager contentEntityManager)
void
setContentType(String contentType)
void
setDraftId(long draftId)
void
setDraftService(DraftService draftService)
void
setDragAndDropEntityId(long dragAndDropEntityId)
void
setDragAndDropService(DragAndDropService dragAndDropService)
void
setFilename(String filename)
void
setFileUploadManager(FileUploadManager fileUploadManager)
void
setIsVFMSupported(boolean isVFMSupported)
void
setMimeType(String mimeType)
void
setMinorEdit(boolean minorEdit)
void
setPageId(long pageId)
void
setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
void
setSize(long size)
void
setWithEditorPlaceholder(boolean withEditorPlaceholder)
void
validate()
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
validate
public void validate()
- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classConfluenceActionSupport
-
execute
public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
setMimeType
public void setMimeType(String mimeType)
-
setContentType
public void setContentType(String contentType)
-
setFilename
public void setFilename(String filename)
-
setSize
public void setSize(long size)
-
setMinorEdit
public void setMinorEdit(boolean minorEdit)
-
setWithEditorPlaceholder
public void setWithEditorPlaceholder(boolean withEditorPlaceholder)
-
setServletRequest
public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
- Specified by:
setServletRequest
in interfaceorg.apache.struts2.interceptor.ServletRequestAware
-
setFileUploadManager
public void setFileUploadManager(FileUploadManager fileUploadManager)
-
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)
-
setPageId
public void setPageId(long pageId)
-
setDraftId
public void setDraftId(long draftId)
-
setDragAndDropService
public void setDragAndDropService(DragAndDropService dragAndDropService)
-
setDraftService
public void setDraftService(DraftService draftService)
-
setDragAndDropEntityId
public void setDragAndDropEntityId(long dragAndDropEntityId)
-
setContentEntityManager
public void setContentEntityManager(ContentEntityManager contentEntityManager)
-
setIsVFMSupported
public void setIsVFMSupported(boolean isVFMSupported)
-
-