public class CmsCacheKey extends java.lang.Object implements I_CmsCacheKey
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_KEY_SUBALL
Cache key for a list of sub-resources (files and folders) of a folder.
|
static java.lang.String |
CACHE_KEY_SUBFILES
Cache key for a list of sub-files of a folder.
|
static java.lang.String |
CACHE_KEY_SUBFOLDERS
Cache key for a list of sub-folders of a folder.
|
Constructor and Description |
---|
CmsCacheKey()
Constructor to create a new instance of CmsCacheKey.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheKeyForGroupUsers(java.lang.String prefix,
CmsDbContext context,
CmsGroup group)
Returns the cache key for the group users cache.
|
java.lang.String |
getCacheKeyForUserGroups(java.lang.String prefix,
CmsDbContext context,
CmsUser user)
Returns the cache key for the user groups cache.
|
java.lang.String |
getCacheKeyForUserPermissions(java.lang.String prefix,
CmsDbContext context,
CmsResource resource,
CmsPermissionSet requiredPermissions)
Returns the cache key for the permission cache.
|
public static final java.lang.String CACHE_KEY_SUBALL
public static final java.lang.String CACHE_KEY_SUBFILES
public static final java.lang.String CACHE_KEY_SUBFOLDERS
public CmsCacheKey()
public java.lang.String getCacheKeyForGroupUsers(java.lang.String prefix, CmsDbContext context, CmsGroup group)
I_CmsCacheKey
getCacheKeyForGroupUsers
in interface I_CmsCacheKey
prefix
- to distinguish keys additionallycontext
- the contextgroup
- the groupI_CmsCacheKey.getCacheKeyForGroupUsers(java.lang.String, org.opencms.db.CmsDbContext, org.opencms.file.CmsGroup)
public java.lang.String getCacheKeyForUserGroups(java.lang.String prefix, CmsDbContext context, CmsUser user)
I_CmsCacheKey
getCacheKeyForUserGroups
in interface I_CmsCacheKey
prefix
- to distinguish keys additionallycontext
- the contextuser
- the userI_CmsCacheKey.getCacheKeyForUserGroups(java.lang.String, org.opencms.db.CmsDbContext, org.opencms.file.CmsUser)
public java.lang.String getCacheKeyForUserPermissions(java.lang.String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions)
I_CmsCacheKey
getCacheKeyForUserPermissions
in interface I_CmsCacheKey
prefix
- to distinguish keys additionallycontext
- the contextresource
- the resourcerequiredPermissions
- the permissions to checkI_CmsCacheKey.getCacheKeyForUserPermissions(java.lang.String, org.opencms.db.CmsDbContext, org.opencms.file.CmsResource, org.opencms.security.CmsPermissionSet)