|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsCacheKey
public class CmsCacheKey
Generates the cache keys for the user and permission caches.
| Field Summary | |
|---|---|
static String |
CACHE_KEY_SUBALL
Cache key for a list of sub-resources (files and folders) of a folder. |
static String |
CACHE_KEY_SUBFILES
Cache key for a list of sub-files of a folder. |
static String |
CACHE_KEY_SUBFOLDERS
Cache key for a list of sub-folders of a folder. |
| Constructor Summary | |
|---|---|
CmsCacheKey()
Constructor to create a new instance of CmsCacheKey. |
|
| Method Summary | |
|---|---|
String |
getCacheKeyForGroupUsers(String prefix,
CmsDbContext context,
CmsGroup group)
Returns the cache key for the group users cache. |
String |
getCacheKeyForUserGroups(String prefix,
CmsDbContext context,
CmsUser user)
Returns the cache key for the user groups cache. |
String |
getCacheKeyForUserPermissions(String prefix,
CmsDbContext context,
CmsResource resource,
CmsPermissionSet requiredPermissions)
Returns the cache key for the permission cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CACHE_KEY_SUBALL
public static final String CACHE_KEY_SUBFILES
public static final String CACHE_KEY_SUBFOLDERS
| Constructor Detail |
|---|
public CmsCacheKey()
| Method Detail |
|---|
public String getCacheKeyForGroupUsers(String prefix,
CmsDbContext context,
CmsGroup group)
I_CmsCacheKey
getCacheKeyForGroupUsers in interface I_CmsCacheKeyprefix - to distinguish keys additionallycontext - the contextgroup - the group
I_CmsCacheKey.getCacheKeyForGroupUsers(java.lang.String, org.opencms.db.CmsDbContext, org.opencms.file.CmsGroup)
public String getCacheKeyForUserGroups(String prefix,
CmsDbContext context,
CmsUser user)
I_CmsCacheKey
getCacheKeyForUserGroups in interface I_CmsCacheKeyprefix - to distinguish keys additionallycontext - the contextuser - the user
I_CmsCacheKey.getCacheKeyForUserGroups(java.lang.String, org.opencms.db.CmsDbContext, org.opencms.file.CmsUser)
public String getCacheKeyForUserPermissions(String prefix,
CmsDbContext context,
CmsResource resource,
CmsPermissionSet requiredPermissions)
I_CmsCacheKey
getCacheKeyForUserPermissions in interface I_CmsCacheKeyprefix - to distinguish keys additionallycontext - the contextresource - the resourcerequiredPermissions - the permissions to check
I_CmsCacheKey.getCacheKeyForUserPermissions(java.lang.String, org.opencms.db.CmsDbContext, org.opencms.file.CmsResource, org.opencms.security.CmsPermissionSet)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||