org.exoplatform.services.jcr.ext.organization
Class JCRCacheHandler
java.lang.Object
org.exoplatform.services.organization.CacheHandler
org.exoplatform.services.jcr.ext.organization.JCRCacheHandler
public class JCRCacheHandler
- extends org.exoplatform.services.organization.CacheHandler
Cache handler for JCR implementation of organization service. Contains method for
hierarchically removing groups and related membership records. To remove node and its
children in JCR need to remove only parent node, but cache has not hierarchy structrue.
We need dedicated method for this.
- Version:
- $Id: JCRCacheHandler.java 79575 2012-02-17 13:23:37Z aplotnikov $
- Author:
- Anatoliy Bazko
| Nested classes/interfaces inherited from class org.exoplatform.services.organization.CacheHandler |
org.exoplatform.services.organization.CacheHandler.CacheType |
|
Field Summary |
protected boolean |
enabled
|
| Fields inherited from class org.exoplatform.services.organization.CacheHandler |
GROUP_PREFIX, groupCache, membershipCache, MEMBERSHIPTYPE_PREFIX, membershipTypeCache, USER_PREFIX, userCache, userProfileCache |
| Methods inherited from class org.exoplatform.services.organization.CacheHandler |
getMembershipKey, getMembershipKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enabled
protected boolean enabled
JCRCacheHandler
public JCRCacheHandler(org.exoplatform.services.cache.CacheService cservice,
JCROrganizationServiceImpl jcrOrganizationServiceImpl,
boolean enabled)
- JCRCacheHandler constructor.
createCacheKey
protected Serializable createCacheKey(Serializable orgServiceKey)
-
- Overrides:
createCacheKey in class org.exoplatform.services.organization.CacheHandler
matchKey
protected boolean matchKey(Serializable cacheKey)
-
- Overrides:
matchKey in class org.exoplatform.services.organization.CacheHandler
createOrgServiceKey
protected Serializable createOrgServiceKey(Serializable cacheKey)
-
- Overrides:
createOrgServiceKey in class org.exoplatform.services.organization.CacheHandler
put
public void put(Serializable key,
Object value,
org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
-
- Overrides:
put in class org.exoplatform.services.organization.CacheHandler
get
public Object get(Serializable key,
org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
-
- Overrides:
get in class org.exoplatform.services.organization.CacheHandler
remove
public void remove(Serializable key,
org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
-
- Overrides:
remove in class org.exoplatform.services.organization.CacheHandler
move
public void move(Serializable oldKey,
Serializable newKey,
org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
-
- Overrides:
move in class org.exoplatform.services.organization.CacheHandler
Copyright © 2016 eXo Platform SAS. All Rights Reserved.