eXo JCR :: Ext :: Services 1.15.10-GA

org.exoplatform.services.jcr.ext.organization
Class JCRCacheHandler

java.lang.Object
  extended by org.exoplatform.services.organization.CacheHandler
      extended by 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 Class Summary
 
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
 
Constructor Summary
JCRCacheHandler(org.exoplatform.services.cache.CacheService cservice, JCROrganizationServiceImpl jcrOrganizationServiceImpl, boolean enabled)
          JCRCacheHandler constructor.
 
Method Summary
protected  Serializable createCacheKey(Serializable orgServiceKey)
          
protected  Serializable createOrgServiceKey(Serializable cacheKey)
          
 Object get(Serializable key, org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
          
protected  boolean matchKey(Serializable cacheKey)
          
 void move(Serializable oldKey, Serializable newKey, org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
          
 void put(Serializable key, Object value, org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
          
 void remove(Serializable key, org.exoplatform.services.organization.CacheHandler.CacheType cacheType)
          
 
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
 

Field Detail

enabled

protected boolean enabled
Constructor Detail

JCRCacheHandler

public JCRCacheHandler(org.exoplatform.services.cache.CacheService cservice,
                       JCROrganizationServiceImpl jcrOrganizationServiceImpl,
                       boolean enabled)
JCRCacheHandler constructor.

Method Detail

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

eXo JCR :: Ext :: Services 1.15.10-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.