Uses of Class
org.opencms.security.CmsPermissionSet
-
Packages that use CmsPermissionSet Package Description org.opencms.db Low-level database connection and access functionality.org.opencms.file This important package provides the methods to access the OpenCms VFS repository with the permissions of an authenticated user.org.opencms.jsp.util Utility classes to be used for JSP pages.org.opencms.security Access control and security classes for the OpenCms ACL permission system.org.opencms.ui.dialogs.permissions Contains permission dialog classes.org.opencms.workplace The base classes for the OpenCms Workplace (standard dialog, tab dialog, report based dialog) and the Workplace configuration classes are located here.org.opencms.workplace.editors Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.org.opencms.workplace.explorer Contains the functions that generate the Workplace "Explorer" view, also contains the "New resource" wizard. -
-
Uses of CmsPermissionSet in org.opencms.db
Methods in org.opencms.db with parameters of type CmsPermissionSet Modifier and Type Method Description protected 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)
.java.lang.String
CmsCacheKey. getCacheKeyForUserPermissions(java.lang.String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions)
java.lang.String
I_CmsCacheKey. getCacheKeyForUserPermissions(java.lang.String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions)
Returns the cache key for the permission cache.java.util.Set<CmsResource>
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.java.util.Set<CmsResource>
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.protected I_CmsPermissionHandler.CmsPermissionCheckResult
CmsSecurityManager. hasPermissions(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter)
Performs a non-blocking permission check on a resource.I_CmsPermissionHandler.CmsPermissionCheckResult
CmsSecurityManager. hasPermissions(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter)
Performs a non-blocking permission check on a resource.I_CmsPermissionHandler.CmsPermissionCheckResult
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
Methods in org.opencms.file that return CmsPermissionSet Modifier and Type Method Description CmsPermissionSet
CmsObject. getPermissions(java.lang.String resourceName)
Returns the set of permissions of the current user for a given resource.CmsPermissionSet
CmsObject. getPermissions(java.lang.String resourceName, java.lang.String userName)
Returns the set of permissions of a given user for a given resource.Methods in org.opencms.file with parameters of type CmsPermissionSet Modifier and Type Method Description java.util.Set<CmsResource>
CmsObject. 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
Methods in org.opencms.jsp.util that return types with arguments of type CmsPermissionSet Modifier and Type Method Description java.util.Map<java.lang.String,CmsPermissionSet>
CmsJspVfsAccessBean. getPermissions()
Short form forCmsJspVfsAccessBean.getReadPermissions()
.java.util.Map<java.lang.String,CmsPermissionSet>
CmsJspVfsAccessBean. getReadPermissions()
Returns a map that lazily reads resource permissions from the OpenCms VFS. -
Uses of CmsPermissionSet in org.opencms.security
Subclasses of CmsPermissionSet in org.opencms.security Modifier and Type Class Description class
CmsPermissionSetCustom
A custom permission set that can be modified during runtime and contains both allowed and denied permissions as bitsets.Fields in org.opencms.security declared as CmsPermissionSet Modifier and Type Field Description static CmsPermissionSet
CmsPermissionSet. ACCESS_CONTROL
Permission set to check control access.static CmsPermissionSet
CmsPermissionSet. ACCESS_DIRECT_PUBLISH
Permission set to check direct publish permissions.static CmsPermissionSet
CmsPermissionSet. ACCESS_READ
Permission set to check read access.static CmsPermissionSet
CmsPermissionSet. ACCESS_VIEW
Permission set to check view access.static CmsPermissionSet
CmsPermissionSet. ACCESS_WRITE
Permission set to check write access.Methods in org.opencms.security that return CmsPermissionSet Modifier and Type Method Description CmsPermissionSet
CmsAccessControlEntry. getPermissions()
Returns the current permission set (both allowed and denied permissions).Methods in org.opencms.security with parameters of type CmsPermissionSet Modifier and Type Method Description void
CmsPermissionSetCustom. addPermissions(CmsPermissionSet permissionSet)
Sets permissions from another permission set additionally both as allowed and denied permissions.I_CmsPermissionHandler.CmsPermissionCheckResult
CmsDefaultPermissionHandler. hasPermissions(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter)
I_CmsPermissionHandler.CmsPermissionCheckResult
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.Constructors in org.opencms.security with parameters of type CmsPermissionSet Constructor Description CmsAccessControlEntry(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
Methods in org.opencms.ui.dialogs.permissions with parameters of type CmsPermissionSet Modifier and Type Method Description protected java.lang.Boolean
CmsPermissionView. isAllowed(CmsPermissionSet p, int value)
Checks if a certain permission of a permission set is allowed.protected java.lang.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
Methods in org.opencms.workplace with parameters of type CmsPermissionSet Modifier and Type Method Description protected 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
Methods in org.opencms.workplace.editors with parameters of type CmsPermissionSet Modifier and Type Method Description protected 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
Methods in org.opencms.workplace.explorer that return CmsPermissionSet Modifier and Type Method Description CmsPermissionSet
CmsExplorerTypeAccess. getPermissions(CmsObject cms, CmsResource resource)
Calculates the permissions for this explorer type settings for the user in the given OpenCms user context.CmsPermissionSet
CmsResourceUtil. getPermissionSet()
Returns the permission set for the given resource.
-