public abstract class AbstractViewAttachmentsAction extends ConfluenceActionSupport implements com.opensymphony.webwork.interceptor.ServletRequestAware, BootstrapAware
Modifier and Type | Field and Description |
---|---|
protected AttachmentManager |
attachmentManager |
protected FileStorer |
fileStorer |
protected List<String> |
highlight |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractViewAttachmentsAction() |
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
protected AttachmentManager attachmentManager
protected FileStorer fileStorer
public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
setServletRequest
in interface com.opensymphony.webwork.interceptor.ServletRequestAware
public com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()
public void bootstrap()
bootstrap
in interface BootstrapAware
protected void validateUpload()
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public boolean hasAttachFilePermissions()
public abstract ContentEntityObject getContentEntityObject()
public void setAttachmentManager(AttachmentManager attachmentManager)
public List<Attachment> getLatestVersionsOfAttachments()
public String[] getAttachmentDetails(Attachment attachment)
attachment
- the attachment to get the details ofpublic long getUploadLimit()
public String getHighlightParameter()
public List<Attachment> getAllVersions(Attachment attachment)
public int getMaxAttachments()
public void setFileUploadManager(FileUploadManager fileUploadManager)
public String getSortBy()
public void setSortBy(String sortBy)
public void setLabels(String labels)
public String getLabels()
Copyright © 2003–2015 Atlassian. All rights reserved.