Uses of Class
org.opencms.security.CmsRole
Package
Description
Contains the ade configuration classes.
Contains server side classes for the XML content editor.
Low-level database connection and access functionality.
Generic (ANSI-SQL) implementation of the OpenCms database connector.
Provides the main OpenCms "operating system".
Contains functions to monitor the OpenCms system status.
Access control and security classes for the OpenCms ACL permission system.
Contains code for workplace apps.
Contains classes of the cache admin app.
Contains classes of the cache admin app.
Contains classes of the file history app.
This package contains the app classes for the git check in functionality.
This package contains the app classes for the list configurations manager.
Contains classes of the site manager app.
Contains classes of the module manager app.
The project manager app classes.
Contains classes of the publish queue app.
The scheduled jobs manager app classes.
Contains classes of the source search app.
Contains classes of the searchindex app.
Contains classes of the site manager app.
Contains classes of the site manager app.
Contains classes of the user manager app.
Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.
-
Uses of CmsRole in org.opencms.ade.configuration
Modifier and TypeMethodDescriptionprotected CmsRole
CmsADEManager.getRoleForSitemapConfigEditing()
Gets the role necessary to edit sitemap configuration files. -
Uses of CmsRole in org.opencms.ade.contenteditor
Modifier and TypeFieldDescriptionstatic final CmsRole
CmsAccessRestrictionInfo.ROLE_CAN_IGNORE_GROUP
The role that can ignore group membership for manipulating the 'restricted' status. -
Uses of CmsRole in org.opencms.db
Modifier and TypeMethodDescriptionCmsDriverManager.getRolesForResource
(CmsDbContext dbc, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsSecurityManager.getRolesForResource
(CmsRequestContext context, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsDriverManager.getRolesForUser
(CmsDbContext dbc, CmsUser user) Returns all roles the given user has independent of the resource.Modifier and TypeMethodDescriptionvoid
CmsSecurityManager.checkRole
(CmsDbContext dbc, CmsRole role) Checks if the user of the current database context has permissions to impersonate the given role in the given organizational unit.void
CmsSecurityManager.checkRole
(CmsRequestContext context, CmsRole role) Checks if the user of the current context has permissions to impersonate the given role.void
CmsSecurityManager.checkRoleForResource
(CmsDbContext dbc, CmsRole role, CmsResource resource) Checks if the user of the current database context has permissions to impersonate the given role for the given resource.void
CmsSecurityManager.checkRoleForResource
(CmsRequestContext context, CmsRole role, CmsResource resource) Checks if the user of the current context has permissions to impersonate the given role for the given resource.protected void
CmsSecurityManager.checkRoleForUserModification
(CmsDbContext dbc, String username, CmsRole role) Checks that the current user has enough permissions to modify the given user.protected List<CmsResource>
CmsSecurityManager.getManageableResources
(CmsDbContext dbc, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsSecurityManager.getManageableResources
(CmsRequestContext context, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsDriverManager.getOrgUnitsForRole
(CmsDbContext dbc, CmsRole role, boolean includeSubOus) Returns all the organizational units for which the current user has the given role.CmsSecurityManager.getOrgUnitsForRole
(CmsRequestContext requestContext, CmsRole role, boolean includeSubOus) Returns all the organizational units for which the current user has the given role.CmsSecurityManager.getRoleGroups
(CmsRequestContext context, CmsRole role, boolean directUsersOnly) Gets the groups which constitute a given role.boolean
CmsSecurityManager.hasRole
(CmsDbContext dbc, CmsUser user, CmsRole role) Checks if the given user has the given role in the given organizational unit.boolean
CmsSecurityManager.hasRole
(CmsRequestContext context, CmsUser user, CmsRole role) Checks if the given user has the given role in the given organizational unit.protected boolean
Returnstrue
if at least one of the given group names is equal to a group name of the given role in the given organizational unit.boolean
CmsSecurityManager.hasRoleForResource
(CmsDbContext dbc, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.boolean
CmsSecurityManager.hasRoleForResource
(CmsRequestContext context, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource. -
Uses of CmsRole in org.opencms.db.generic
Modifier and TypeMethodDescriptionprotected void
CmsUserDriver.internalUpdateRoleGroup
(CmsDbContext dbc, String groupName, CmsRole role) Updates a group to a virtual group. -
Uses of CmsRole in org.opencms.main
Modifier and TypeMethodDescriptionOpenCms.getSystemRoles()
Returns the list of system defined roles (instances of
).CmsRole
Modifier and TypeMethodDescriptionboolean
CmsShell.validateUser
(String userName, String password, CmsRole requiredRole) Validates the given user and password and checks if the user has the requested role. -
Uses of CmsRole in org.opencms.monitor
Modifier and TypeMethodDescriptionCmsGroupListCache.getBareRoles
(CmsUUID userId) Gets the cached bare roles for the given user id, or null if none are cached.CmsMemoryMonitor.getCachedRoleList
(String key) Returns the value cached with the given cache key ornull
if not found.Modifier and TypeMethodDescriptionvoid
CmsMemoryMonitor.cacheRoleList
(String key, List<CmsRole> roles) Caches the given value under the given cache key.void
CmsGroupListCache.setBareRoles
(CmsUser user, List<CmsRole> bareRoles) Sets the bare roles for a user (with no OU information). -
Uses of CmsRole in org.opencms.security
Modifier and TypeFieldDescriptionstatic final CmsRole
CmsRole.ACCOUNT_MANAGER
The "ACCOUNT_MANAGER" role.static final CmsRole
CmsRole.ADMINISTRATOR
The "ADMINISTRATOR" role, which is a parent to all organizational unit roles.static final CmsRole
CmsRole.CATEGORY_EDITOR
The "CATEGORY_EDITOR" role.static final CmsRole
CmsRole.DATABASE_MANAGER
The "EXPORT_DATABASE" role.static final CmsRole
CmsRole.DEVELOPER
The "DEVELOPER" role.static final CmsRole
CmsRole.EDITOR
The "EDITOR" role.static final CmsRole
CmsRole.ELEMENT_AUTHOR
The "ELEMENT_AUTHOR" role.static final CmsRole
CmsRole.GALLERY_EDITOR
The "GALLERY_EDITOR" role.static final CmsRole
CmsRole.LIST_EDITOR
The "LIST_EDITOR" role.static final CmsRole
CmsRole.PROJECT_MANAGER
The "PROJECT_MANAGER" role.static final CmsRole
CmsRole.ROOT_ADMIN
The "ROOT_ADMIN" role, which is a parent to all other roles.static final CmsRole
CmsRole.VFS_MANAGER
The "VFS_MANAGER" role.static final CmsRole
CmsRole.WORKPLACE_MANAGER
The "WORKPLACE_MANAGER" role.static final CmsRole
CmsRole.WORKPLACE_USER
The "WORKPLACE_USER" role.Modifier and TypeMethodDescriptionCmsRole.forOrgUnit
(String ouFqn) Creates a new role based on this one for the given organizational unit.CmsRole.getParentRole()
Returns the parent role of this role.CmsRoleAsPrincipal.getRole()
Gets the wrapped role.static CmsRole
Returns the role for the given group.static CmsRole
CmsRole.valueOfGroupName
(String groupName) Returns the role for the given group name.static CmsRole
Returns the role for the given id.static CmsRole
CmsRole.valueOfRoleName
(String roleName) Returns the role for the given role name.Modifier and TypeMethodDescriptionCmsRole.getChildren
(boolean recursive) Returns a list of all sub roles.Returns all roles, in the given organizational unit.CmsRoleManager.getRolesForResource
(CmsObject cms, String userFqn, String resourceName) Returns all roles the given user has over the given resource.CmsRoleManager.getRolesForResource
(CmsObject cms, CmsUser user, CmsResource resource) Returns all roles the given user has over the given resource.CmsRoleManager.getRolesOfUser
(CmsObject cms, String username, String ouFqn, boolean includeChildOus, boolean directRolesOnly, boolean recursive) Returns all roles the given user belongs to, in the given organizational unit.CmsRole.getSystemRoles()
Returns the list of system defined roles (instances of
).CmsRole
Modifier and TypeMethodDescriptionvoid
CmsRoleManager.addUserToRole
(CmsObject cms, CmsRole role, String username) Adds a user to the given role.void
Checks if the user of this OpenCms context is a member of the given role for the given organizational unit.void
CmsRoleManager.checkRoleForResource
(CmsObject cms, CmsRole role, String resourceName) Checks if the user of this OpenCms context is a member of the given role for the given resource.CmsRoleManager.getManageableResources
(CmsObject cms, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsRoleManager.getOrgUnitsForRole
(CmsObject cms, CmsRole role, boolean includeSubOus) Returns all the organizational units for which the current user has the given role.CmsRoleManager.getRoleGroups
(CmsObject cms, CmsRole role, boolean directUsersOnly) Returns the groups which constitute a given role, i.e.CmsRoleManager.getUsersOfRole
(CmsObject cms, CmsRole role, boolean includeOtherOuUsers, boolean directUsersOnly) Returns all direct users of a given role, in the given organizational unit.boolean
Checks if the given user has the given role in the given organizational unit.boolean
Checks if the given context user has the given role in the given organizational unit.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, String userName, CmsRole role, String resourceName) Checks if the given context user has the given role for the given resource.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, CmsRole role, String resourceName) Checks if the given context user has the given role for the given resource.boolean
CmsRoleManager.hasRoleForResource
(CmsObject cms, CmsRole role, CmsResource resource) Checks if the given context user has the given role for the given resource.void
CmsRoleManager.removeUserFromRole
(CmsObject cms, CmsRole role, String username) Removes a user from a role, in the given organizational unit.Modifier and TypeMethodDescriptionstatic void
CmsRole.applySystemRoleOrder
(List<CmsRole> roles) Applies the system role order to a list of roles. -
Uses of CmsRole in org.opencms.ui.apps
Modifier and TypeMethodDescriptionA_CmsWorkplaceAppConfiguration.getRequiredRole()
CmsEditorConfiguration.getRequiredRole()
CmsLegacyAppConfiguration.getRequiredRole()
CmsPageEditorConfiguration.getRequiredRole()
CmsSitemapEditorConfiguration.getRequiredRole()
I_CmsWorkplaceAppConfiguration.getRequiredRole()
Returns the user role required for this app. -
Uses of CmsRole in org.opencms.ui.apps.cacheadmin
Modifier and TypeMethodDescriptionCmsCacheAdminConfiguration.getRequiredRole()
CmsCacheViewFlexConfiguration.getRequiredRole()
CmsCacheViewImageConfiguration.getRequiredRole()
-
Uses of CmsRole in org.opencms.ui.apps.datesearch
-
Uses of CmsRole in org.opencms.ui.apps.dbmanager
Modifier and TypeMethodDescriptionCmsDbExportConfiguration.getRequiredRole()
CmsDbImportHTTPConfiguration.getRequiredRole()
CmsDbImportServerConfiguration.getRequiredRole()
CmsDbManagerConfiguration.getRequiredRole()
CmsDbPropertiesAppConfiguration.getRequiredRole()
CmsDbRemovePubLocksConfiguration.getRequiredRole()
CmsDbStaticExportConfiguration.getRequiredRole()
CmsDbSynchronizationConfiguration.getRequiredRole()
-
Uses of CmsRole in org.opencms.ui.apps.dbmanager.sqlconsole
-
Uses of CmsRole in org.opencms.ui.apps.filehistory
-
Uses of CmsRole in org.opencms.ui.apps.git
-
Uses of CmsRole in org.opencms.ui.apps.lists
-
Uses of CmsRole in org.opencms.ui.apps.logfile
-
Uses of CmsRole in org.opencms.ui.apps.modules
-
Uses of CmsRole in org.opencms.ui.apps.projects
-
Uses of CmsRole in org.opencms.ui.apps.publishqueue
-
Uses of CmsRole in org.opencms.ui.apps.resourcetypes
-
Uses of CmsRole in org.opencms.ui.apps.scheduler
-
Uses of CmsRole in org.opencms.ui.apps.search
-
Uses of CmsRole in org.opencms.ui.apps.searchindex
-
Uses of CmsRole in org.opencms.ui.apps.sessions
-
Uses of CmsRole in org.opencms.ui.apps.shell
-
Uses of CmsRole in org.opencms.ui.apps.sitemanager
-
Uses of CmsRole in org.opencms.ui.apps.unusedcontentfinder
-
Uses of CmsRole in org.opencms.ui.apps.user
Modifier and TypeMethodDescriptionprotected com.vaadin.ui.ComboBox<CmsRole>
CmsImportExportUserDialog.getRoleComboBox
(String ou) Get ComboBox for selecting roles.Modifier and TypeMethodDescriptionprotected void
Updates app. -
Uses of CmsRole in org.opencms.ui.apps.userdata
-
Uses of CmsRole in org.opencms.widgets
ModifierConstructorDescriptionCmsOrgUnitWidget
(CmsRole role) Creates a new user selection widget with the parameters to configure the popup window behaviour.