fr.paris.lutece.portal.service.prefs
Class BaseUserPreferencesCacheService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.AbstractCacheableService
      extended by fr.paris.lutece.portal.service.prefs.BaseUserPreferencesCacheService
All Implemented Interfaces:
CacheableService, LuteceService, Cloneable, net.sf.ehcache.event.CacheEventListener

public class BaseUserPreferencesCacheService
extends AbstractCacheableService

Cache service for BaseUserPreferencesServiceImpl


Constructor Summary
BaseUserPreferencesCacheService()
           
 
Method Summary
 String getCacheKey(String strUserId, String strKey)
          Get the key in the cache of a preference of a user
 String getName()
          Returns the Service name
 void removeCacheValuesOfUser(String strUserId)
          Remove every values stored in cache for a given user
 
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseUserPreferencesCacheService

public BaseUserPreferencesCacheService()
Method Detail

getName

public String getName()
Returns the Service name

Returns:
The name as a String

getCacheKey

public String getCacheKey(String strUserId,
                          String strKey)
Get the key in the cache of a preference of a user

Parameters:
strUserId - The id of the user
strKey - The preference key
Returns:
The key in the cache of the preference of the user

removeCacheValuesOfUser

public void removeCacheValuesOfUser(String strUserId)
Remove every values stored in cache for a given user

Parameters:
strUserId - The user id to remove from cache


Copyright © 2014 Mairie de Paris. All Rights Reserved.