|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.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 |
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 getCacheKeyForUserGroups(java.lang.String prefix, CmsDbContext context, CmsUser user)
I_CmsCacheKey
getCacheKeyForUserGroups
in interface I_CmsCacheKey
prefix
- to distinguish keys additionallycontext
- the contextuser
- the resource
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 |