Uses of Class
org.opencms.security.CmsPermissionSet
Package
Description
Low-level database connection and access functionality.
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
Utility classes to be used for JSP pages.
Access control and security classes for the OpenCms ACL permission system.
Contains permission dialog classes.
The base classes for the OpenCms Workplace
(standard dialog, tab dialog, report based dialog)
and the Workplace configuration classes are located here.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
Contains the functions that generate the Workplace "Explorer" view, also contains
the "New resource" wizard.
-
Uses of CmsPermissionSet in org.opencms.db
Modifier and TypeMethodDescriptionprotected void
CmsSecurityManager.checkPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.protected void
CmsSecurityManager.checkPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.void
CmsSecurityManager.checkPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.protected void
CmsSecurityManager.checkPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.CmsPermissionCheckResult permissions) Applies the permission check result of a previous call toCmsSecurityManager.hasPermissions(CmsRequestContext, CmsResource, CmsPermissionSet, boolean, CmsResourceFilter)
.CmsCacheKey.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) I_CmsCacheKey.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) Returns the cache key for the permission cache.CmsDriverManager.getResourcesForPrincipal
(CmsDbContext dbc, CmsProject project, CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.CmsSecurityManager.getResourcesForPrincipal
(CmsRequestContext context, CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.CmsSecurityManager.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.CmsSecurityManager.hasPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.CmsSecurityManager.hasPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource. -
Uses of CmsPermissionSet in org.opencms.file
Modifier and TypeMethodDescriptionCmsObject.getPermissions
(String resourceName) Returns the set of permissions of the current user for a given resource.CmsObject.getPermissions
(String resourceName, String userName) Returns the set of permissions of a given user for a given resource.Modifier and TypeMethodDescriptionCmsObject.getResourcesForPrincipal
(CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.boolean
CmsObject.hasPermissions
(CmsResource resource, CmsPermissionSet requiredPermissions) Checks if the current user has required permissions to access a given resource.boolean
CmsObject.hasPermissions
(CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Checks if the current user has required permissions to access a given resource. -
Uses of CmsPermissionSet in org.opencms.jsp.util
Modifier and TypeMethodDescriptionCmsJspVfsAccessBean.getPermissions()
Short form forCmsJspVfsAccessBean.getReadPermissions()
.CmsJspVfsAccessBean.getReadPermissions()
Returns a map that lazily reads resource permissions from the OpenCms VFS. -
Uses of CmsPermissionSet in org.opencms.security
Modifier and TypeClassDescriptionclass
A custom permission set that can be modified during runtime and contains both allowed and denied permissions as bitsets.Modifier and TypeFieldDescriptionstatic final CmsPermissionSet
CmsPermissionSet.ACCESS_CONTROL
Permission set to check control access.static final CmsPermissionSet
CmsPermissionSet.ACCESS_DIRECT_PUBLISH
Permission set to check direct publish permissions.static final CmsPermissionSet
CmsPermissionSet.ACCESS_READ
Permission set to check read access.static final CmsPermissionSet
CmsPermissionSet.ACCESS_VIEW
Permission set to check view access.static final CmsPermissionSet
CmsPermissionSet.ACCESS_WRITE
Permission set to check write access.Modifier and TypeMethodDescriptionCmsAccessControlEntry.getPermissions()
Returns the current permission set (both allowed and denied permissions).Modifier and TypeMethodDescriptionvoid
CmsPermissionSetCustom.addPermissions
(CmsPermissionSet permissionSet) Sets permissions from another permission set additionally both as allowed and denied permissions.CmsDefaultPermissionHandler.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) I_CmsPermissionHandler.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.void
CmsAccessControlEntry.setPermissions
(CmsPermissionSet permissions) Sets the allowed and denied permissions of the access control entry.void
CmsPermissionSetCustom.setPermissions
(CmsPermissionSet permissionSet) Set permissions from another permission set both as allowed and denied permissions.ModifierConstructorDescriptionCmsAccessControlEntry
(CmsUUID resource, CmsUUID principal, CmsPermissionSet permissions, int flags) Constructor to create a new access control entry on a given resource and a given principal.CmsPermissionSetCustom
(CmsPermissionSet permissions) Constructor to create a permission set with preset allowed and denied permissions from another permission set. -
Uses of CmsPermissionSet in org.opencms.ui.dialogs.permissions
Modifier and TypeMethodDescriptionprotected Boolean
CmsPermissionView.isAllowed
(CmsPermissionSet p, int value) Checks if a certain permission of a permission set is allowed.protected Boolean
CmsPermissionView.isDenied
(CmsPermissionSet p, int value) Checks if a certain permission of a permission set is denied. -
Uses of CmsPermissionSet in org.opencms.workplace
Modifier and TypeMethodDescriptionprotected boolean
CmsDialog.checkResourcePermissions
(CmsPermissionSet required, boolean neededForFolder) Checks if the permissions of the current user on the resource to use in the dialog are sufficient.protected boolean
CmsDialog.checkResourcePermissions
(CmsPermissionSet required, boolean neededForFolder, CmsMessageContainer errorMessage) Checks if the permissions of the current user on the resource to use in the dialog are sufficient. -
Uses of CmsPermissionSet in org.opencms.workplace.editors
Modifier and TypeMethodDescriptionprotected boolean
CmsEditorBase.checkResourcePermissions
(CmsPermissionSet required, boolean neededForFolder, CmsMessageContainer errorMessage) In addition to the permission check, this will also check if the current user has at least the ELEMENT_AUTHOR role. -
Uses of CmsPermissionSet in org.opencms.workplace.explorer
Modifier and TypeMethodDescriptionCmsExplorerTypeAccess.getPermissions
(CmsObject cms, CmsResource resource) Calculates the permissions for this explorer type settings for the user in the given OpenCms user context.CmsResourceUtil.getPermissionSet()
Returns the permission set for the given resource.