public class GetPagePermissionsAction extends AbstractPageAwareAction implements Beanable, SpaceAware
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
bean |
contentPermissionManager, spaceManager
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
GetPagePermissionsAction() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getBean() |
String |
getContentPermissions() |
String |
getEditPagePermissions()
Deprecated.
since 5.10, use
getContentPermissions() |
String |
getPagePermissions()
Deprecated.
since 5.10, use
getContentPermissions() |
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 |
isSpaceRequired()
If the action requires that the space be set before being run, then it should
return true to this method.
|
void |
setContentEntityManager(ContentEntityManager contentEntityManager) |
void |
setContentId(long contentId) |
void |
setContentPermissionManager(ContentPermissionManager contentPermissionManager) |
void |
setPageManager(PageManager pageManager) |
void |
setParentPageId(long parentPageId) |
void |
setParentPageTitle(String parentPageTitle) |
void |
setSpace(Space space)
IOC method for setting the space on the action.
|
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, isCollaborativeContent, isLatestVersionRequired, isViewPermissionRequired, setPage, setSpaceManager
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, 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
isViewPermissionRequired
isEditPermissionRequired
validate
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
@Deprecated public String getPagePermissions() throws Exception
getContentPermissions()
Exception
@Deprecated public String getEditPagePermissions() throws Exception
getContentPermissions()
Exception
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
setContentPermissionManager
in class AbstractPageAwareAction
public void setPageManager(PageManager pageManager)
public void setSpace(Space space)
SpaceAware
setSpace
in interface SpaceAware
space
- the space that the action will be working on.public boolean isPageRequired()
PageAware
isPageRequired
in interface PageAware
isPageRequired
in class AbstractPageAwareAction
public boolean isSpaceRequired()
SpaceAware
isSpaceRequired
in interface SpaceAware
public void setParentPageId(long parentPageId)
public void setParentPageTitle(String parentPageTitle)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setContentId(long contentId)
Copyright © 2003–2018 Atlassian. All rights reserved.