|
||||||
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 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 Summary | |
---|---|
CmsCacheKey()
Constructor to create a new instance of CmsCacheKey. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public CmsCacheKey()
Method Detail |
---|
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 group
I_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 user
I_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 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 |