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() |
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrap() |
String |
execute() |
List<Attachment> |
getAllVersions(Attachment attachment) |
String[] |
getAttachmentDetails(Attachment attachment)
Used for writing the "do you want to remove?" message.
|
abstract ContentEntityObject |
getContentEntityObject() |
List<String> |
getHighlight() |
String |
getHighlightParameter() |
String |
getLabels() |
List<Attachment> |
getLatestVersionsOfAttachments() |
int |
getMaxAttachments() |
com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper |
getMultiPartRequest() |
String |
getSortBy() |
long |
getUploadLimit() |
boolean |
hasAttachFilePermissions() |
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setFileUploadManager(FileUploadManager fileUploadManager) |
void |
setHighlight(List<String> names) |
void |
setLabels(String labels) |
void |
setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
setSortBy(String sortBy) |
protected void |
validateUpload() |
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, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManageraddActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateprotected AttachmentManager attachmentManager
protected FileStorer fileStorer
public void setServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
setServletRequest in interface com.opensymphony.webwork.interceptor.ServletRequestAwarepublic com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()
public void bootstrap()
bootstrap in interface BootstrapAwareprotected void validateUpload()
public String execute() throws Exception
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportExceptionpublic 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–2016 Atlassian. All rights reserved.