Class DuplicateRulesCache
- java.lang.Object
-
- fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
- fr.paris.lutece.plugins.identitystore.cache.DuplicateRulesCache
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService,fr.paris.lutece.portal.service.util.LuteceService,Cloneable,net.sf.ehcache.event.CacheEventListener
public class DuplicateRulesCache extends fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description DuplicateRulesCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DuplicateRuleget(String ruleCode)DuplicateRulegetFromDatabase(String ruleCode)StringgetName()voidput(DuplicateRule rule)voidrefresh()voidremove(Integer id)Deletes aServiceContractby its id in the databasevoidremove(String ruleCode)-
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
-
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
refresh
public void refresh()
-
put
public void put(DuplicateRule rule)
-
remove
public void remove(String ruleCode)
-
remove
public void remove(Integer id)
Deletes aServiceContractby its id in the database- Parameters:
id-
-
get
public DuplicateRule get(String ruleCode) throws DuplicateRuleNotFoundException
- Throws:
DuplicateRuleNotFoundException
-
getFromDatabase
public DuplicateRule getFromDatabase(String ruleCode) throws DuplicateRuleNotFoundException
- Throws:
DuplicateRuleNotFoundException
-
getName
public String getName()
-
-