public class ViewPageAttachmentsAction extends AbstractViewAttachmentsAction implements PageAware, CaptchaAware, TinyUrlAware, ContentDetailAction
attachmentManager, fileStorer, highlight
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
ViewPageAttachmentsAction() |
Modifier and Type | Method and Description |
---|---|
CaptchaManager |
getCaptchaManager() |
ContentEntityObject |
getContentEntityObject() |
List<Attachment> |
getLatestVersionsOfAttachments() |
AbstractPage |
getPage() |
String |
getPageId() |
PaginationSupport |
getPaginationSupport() |
Space |
getSpace() |
String |
getSpaceKey() |
int |
getStartIndex() |
String |
getTinyUrl() |
WebInterfaceContext |
getWebInterfaceContext(Attachment attachment)
Deprecated.
since 3.1 use
getWebInterfaceContext(WebInterfaceContext, Attachment) |
WebInterfaceContext |
getWebInterfaceContext(WebInterfaceContext context,
Attachment attachment) |
boolean |
isLatestVersionRequired()
If the action can only work on the most recent version of a page, this will cause the
interceptor to silently replace the version that it looks up with the most recent
version, if necessary.
|
boolean |
isPageRequired()
If the action requires that the page be set before being run, then it should
return true to this method.
|
boolean |
isPermitted() |
boolean |
isViewPermissionRequired() |
void |
setCaptchaManager(CaptchaManager captchaManager) |
void |
setPage(AbstractPage page)
IOC method for setting the page on the action.
|
void |
setPageId(String pageId) |
void |
setStartIndex(int startIndex) |
bootstrap, execute, getAllVersions, getAttachmentDetails, getHighlight, getHighlightParameter, getLabels, getMaxAttachments, getMultiPartRequest, getSortBy, getUploadLimit, hasAttachFilePermissions, setAttachmentManager, setFileUploadManager, setHighlight, setLabels, setServletRequest, setSortBy, validateUpload
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, 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
isEditPermissionRequired
validate
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
public List<Attachment> getLatestVersionsOfAttachments()
getLatestVersionsOfAttachments
in class AbstractViewAttachmentsAction
public ContentEntityObject getContentEntityObject()
getContentEntityObject
in class AbstractViewAttachmentsAction
public AbstractPage getPage()
public void setPage(AbstractPage page)
PageAware
public boolean isPageRequired()
PageAware
isPageRequired
in interface PageAware
public boolean isLatestVersionRequired()
PageAware
isLatestVersionRequired
in interface PageAware
public boolean isViewPermissionRequired()
isViewPermissionRequired
in interface PageAware
public String getPageId()
public void setPageId(String pageId)
public int getStartIndex()
public void setStartIndex(int startIndex)
public PaginationSupport getPaginationSupport()
@Deprecated public WebInterfaceContext getWebInterfaceContext(Attachment attachment)
getWebInterfaceContext(WebInterfaceContext, Attachment)
public WebInterfaceContext getWebInterfaceContext(WebInterfaceContext context, Attachment attachment)
public CaptchaManager getCaptchaManager()
public void setCaptchaManager(CaptchaManager captchaManager)
public Space getSpace()
public String getTinyUrl()
getTinyUrl
in interface TinyUrlAware
public String getSpaceKey()
Copyright © 2003–2017 Atlassian. All rights reserved.