Package org.opencms.db
Class CmsCacheKey
java.lang.Object
org.opencms.db.CmsCacheKey
- All Implemented Interfaces:
I_CmsCacheKey
Generates the cache keys for the user and permission caches.
- Since:
- 6.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheKeyForGroupUsers
(String prefix, CmsDbContext context, CmsGroup group) Returns the cache key for the group users cache.getCacheKeyForUserGroups
(String prefix, CmsDbContext context, CmsUser user) Returns the cache key for the user groups cache.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) Returns the cache key for the permission cache.
-
Field Details
-
CACHE_KEY_SUBALL
Cache key for a list of sub-resources (files and folders) of a folder.- See Also:
-
CACHE_KEY_SUBFILES
Cache key for a list of sub-files of a folder.- See Also:
-
CACHE_KEY_SUBFOLDERS
Cache key for a list of sub-folders of a folder.- See Also:
-
-
Constructor Details
-
CmsCacheKey
public CmsCacheKey()Constructor to create a new instance of CmsCacheKey.
-
-
Method Details
-
getCacheKeyForGroupUsers
Description copied from interface:I_CmsCacheKey
Returns the cache key for the group users cache.- Specified by:
getCacheKeyForGroupUsers
in interfaceI_CmsCacheKey
- Parameters:
prefix
- to distinguish keys additionallycontext
- the contextgroup
- the group- Returns:
- a cache key that is unique for the set of parameters
- See Also:
-
getCacheKeyForUserGroups
Description copied from interface:I_CmsCacheKey
Returns the cache key for the user groups cache.- Specified by:
getCacheKeyForUserGroups
in interfaceI_CmsCacheKey
- Parameters:
prefix
- to distinguish keys additionallycontext
- the contextuser
- the user- Returns:
- a cache key that is unique for the set of parameters
- See Also:
-
getCacheKeyForUserPermissions
public String getCacheKeyForUserPermissions(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) Description copied from interface:I_CmsCacheKey
Returns the cache key for the permission cache.- Specified by:
getCacheKeyForUserPermissions
in interfaceI_CmsCacheKey
- Parameters:
prefix
- to distinguish keys additionallycontext
- the contextresource
- the resourcerequiredPermissions
- the permissions to check- Returns:
- a cache key that is unique for the set of parameters
- See Also:
-