fr.paris.lutece.portal.service.cache
Class DefaultCacheKeyService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.DefaultCacheKeyService
All Implemented Interfaces:
ICacheKeyService

public class DefaultCacheKeyService
extends java.lang.Object
implements ICacheKeyService

Default cache key service


Constructor Summary
DefaultCacheKeyService()
           
 
Method Summary
 java.lang.String getKey(java.util.Map<java.lang.String,java.lang.String> mapParams, int nMode, LuteceUser user)
          Calculate the cache key
 void setAllowedParametersList(java.util.List<java.lang.String> list)
          Sets the list of allowed parameters to include into the cache key
 void setIgnoredParametersList(java.util.List<java.lang.String> list)
          Sets the list of ignored parameters not to include into the cache key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheKeyService

public DefaultCacheKeyService()
Method Detail

getKey

public java.lang.String getKey(java.util.Map<java.lang.String,java.lang.String> mapParams,
                               int nMode,
                               LuteceUser user)
Calculate the cache key

Specified by:
getKey in interface ICacheKeyService
Parameters:
mapParams - A map of key/value
nMode - The mode
user - The LuteceUser
Returns:
The calculated key

setAllowedParametersList

public void setAllowedParametersList(java.util.List<java.lang.String> list)
Sets the list of allowed parameters to include into the cache key

Specified by:
setAllowedParametersList in interface ICacheKeyService
Parameters:
list - The list

setIgnoredParametersList

public void setIgnoredParametersList(java.util.List<java.lang.String> list)
Sets the list of ignored parameters not to include into the cache key

Specified by:
setIgnoredParametersList in interface ICacheKeyService
Parameters:
list - The list


Copyright © 2012 Mairie de Paris. All Rights Reserved.