Class BaseUserPreferencesCacheService
- java.lang.Object
-
- fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
- fr.paris.lutece.portal.service.prefs.BaseUserPreferencesCacheService
-
- All Implemented Interfaces:
CacheableService,LuteceService,java.lang.Cloneable,net.sf.ehcache.event.CacheEventListener
public class BaseUserPreferencesCacheService extends AbstractCacheableService
Cache service forBaseUserPreferencesServiceImpl
-
-
Constructor Summary
Constructors Constructor Description BaseUserPreferencesCacheService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCacheKey(java.lang.String strUserId, java.lang.String strKey)Get the key in the cache of a preference of a userjava.lang.StringgetName()Returns the Service namevoidremoveCacheValuesOfUser(java.lang.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, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the Service name- Returns:
- The name as a String
-
getCacheKey
public java.lang.String getCacheKey(java.lang.String strUserId, java.lang.String strKey)Get the key in the cache of a preference of a user- Parameters:
strUserId- The id of the userstrKey- The preference key- Returns:
- The key in the cache of the preference of the user
-
removeCacheValuesOfUser
public void removeCacheValuesOfUser(java.lang.String strUserId)
Remove every values stored in cache for a given user- Parameters:
strUserId- The user id to remove from cache
-
-