public abstract class AbstractPageAwareAction extends ConfluenceActionSupport implements PageAware
Modifier and Type | Field and Description |
---|---|
protected ContentPermissionManager |
contentPermissionManager |
protected SpaceManager |
spaceManager |
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractPageAwareAction() |
Modifier and Type | Method and Description |
---|---|
FriendlyDateFormatterHelper |
getFriendlyDateFormatterHelper() |
AbstractPage |
getPage() |
long |
getPageId() |
Space |
getSpace() |
String |
getSpaceKey() |
String |
getTitle() |
boolean |
isCollaborativeContent() |
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 |
setContentPermissionManager(ContentPermissionManager contentPermissionManager) |
void |
setPage(AbstractPage page)
IOC method for setting the page on the action.
|
void |
setSpaceManager(SpaceManager spaceManager) |
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, 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, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, 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, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, execute, 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
protected SpaceManager spaceManager
protected ContentPermissionManager contentPermissionManager
public AbstractPage getPage()
public long getPageId()
public String getTitle()
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 boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
public Space getSpace()
public void setSpaceManager(SpaceManager spaceManager)
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
public boolean isCollaborativeContent()
public String getSpaceKey()
public FriendlyDateFormatterHelper getFriendlyDateFormatterHelper()
Copyright © 2003–2019 Atlassian. All rights reserved.