public abstract class AbstractPermissionsAction extends ConfluenceActionSupport implements PermissionsAware, BootstrapAware
Modifier and Type | Field and Description |
---|---|
protected PermissionRow |
anonymousPermissionRow |
protected Collection<PermissionRow> |
groupPermissionRows
Map of groupnames to
DefaultPermissionsAdministrator.GroupPermissionRow s. |
protected PermissionsAdministratorBuilder |
permissionsAdministratorBuilder |
protected Collection<PermissionRow> |
userPermissionRows
Map of usernames to
DefaultPermissionsAdministrator.UserPermissionRow s. |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractPermissionsAction() |
Modifier and Type | Method and Description |
---|---|
void |
bootstrap() |
PermissionRow |
getAnonymousPermissionRow()
Retrieves the anonymous permissions row for printing in a UI.
|
Collection<PermissionRow> |
getGroupPermissionRows()
Gets the list of current
DefaultPermissionsAdministrator.GroupPermissionRow s for printing in a UI. |
List<String> |
getPermissions() |
Map |
getRequestParams()
Returns the parameters of the request
|
PermissionRow |
getUnlicensedAuthenticatedPermissionRow()
Retrieves the unlicensed authenticated user permissions row for printing in a UI.
|
Collection<PermissionRow> |
getUserPermissionRows()
Gets the list of current
DefaultPermissionsAdministrator.UserPermissionRow s for printing in a UI. |
boolean |
isAdminUser() |
boolean |
isShowGlobalUnlicensedUsersUI()
Show the permissions UI for unlicensed authenticated users if any global authenticated user permissions are
present.
|
boolean |
isValidAnonymousPermission(String permissionType)
Check whether this space permission is allowed to be assigned to the 'anonymous' category.
|
boolean |
isValidAuthenticatedUsersPermission(String permissionType)
Check whether this space permission is allowed to be assigned to the 'authenticated users' category.
|
void |
setPermissionsAdministratorBuilder(PermissionsAdministratorBuilder permissionsAdministratorBuilder) |
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, 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, isPermitted, 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
getGuardPermission, getPermissionsAdministrator, isSharedMode, populateAdministrator
validate
protected Collection<PermissionRow> userPermissionRows
DefaultPermissionsAdministrator.UserPermissionRow
s.protected Collection<PermissionRow> groupPermissionRows
DefaultPermissionsAdministrator.GroupPermissionRow
s.protected PermissionRow anonymousPermissionRow
protected PermissionsAdministratorBuilder permissionsAdministratorBuilder
public void setPermissionsAdministratorBuilder(PermissionsAdministratorBuilder permissionsAdministratorBuilder)
public Collection<PermissionRow> getUserPermissionRows()
DefaultPermissionsAdministrator.UserPermissionRow
s for printing in a UI.getUserPermissionRows
in interface PermissionsAware
DefaultPermissionsAdministrator.UserPermissionRow
public Collection<PermissionRow> getGroupPermissionRows()
DefaultPermissionsAdministrator.GroupPermissionRow
s for printing in a UI.getGroupPermissionRows
in interface PermissionsAware
DefaultPermissionsAdministrator.GroupPermissionRow
public PermissionRow getUnlicensedAuthenticatedPermissionRow()
PermissionsAware
getUnlicensedAuthenticatedPermissionRow
in interface PermissionsAware
public PermissionRow getAnonymousPermissionRow()
PermissionsAware
getAnonymousPermissionRow
in interface PermissionsAware
public boolean isValidAnonymousPermission(String permissionType)
permissionType
- a SpacePermission
valuepublic boolean isValidAuthenticatedUsersPermission(String permissionType)
permissionType
- a SpacePermission
valuepublic Map getRequestParams()
PermissionsAware
getRequestParams
in interface PermissionsAware
public void bootstrap()
bootstrap
in interface BootstrapAware
public boolean isAdminUser()
public boolean isShowGlobalUnlicensedUsersUI()
SpacePermission.isAuthenticatedUsersPermission()
returns trueCopyright © 2003–2016 Atlassian. All rights reserved.