public class CmsCacheKey extends java.lang.Object implements I_CmsCacheKey
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
CmsCacheKey()
Constructor to create a new instance of CmsCacheKey.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 java.lang.String getCacheKeyForGroupUsers(java.lang.String prefix,
CmsDbContext context,
CmsGroup group)
I_CmsCacheKeygetCacheKeyForGroupUsers 在接口中 I_CmsCacheKeyprefix - 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_CmsCacheKeygetCacheKeyForUserGroups 在接口中 I_CmsCacheKeyprefix - 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_CmsCacheKeygetCacheKeyForUserPermissions 在接口中 I_CmsCacheKeyprefix - 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)