Class IdentityDtoCache
- java.lang.Object
-
- fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
- fr.paris.lutece.plugins.identitystore.cache.IdentityDtoCache
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService,fr.paris.lutece.portal.service.util.LuteceService,java.lang.Cloneable,net.sf.ehcache.event.CacheEventListener
public class IdentityDtoCache extends fr.paris.lutece.portal.service.cache.AbstractCacheableServicecache sur les requêtes d'identité (par CUID ou GUID), qui cache :
- Les attributs autorisés en lecture défini dans le contrat de service
- Le score de qualité
- Le score de couverture
- Les données de suspicions de doublons si l'identité est marquée comme suspecte
- Les données d'exclusion si l'identité a été exclue d'une ou plusieurs suspicions de doublon avec d'autres identités
- Si la date est la même dans l'objet caché et en DB, l'objet caché est retourné
- Sinon, on supprime l'objet caché du cache, on récupère toutes les infos de la DB et on recache.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description IdentityDtoCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDtogetByConnectionId(java.lang.String connectionId, ServiceContract serviceContract)fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDtogetByCustomerId(java.lang.String customerId, ServiceContract serviceContract)fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDtogetFromDatabaseAndEnrich(java.lang.String customerId, ServiceContract serviceContract)java.lang.StringgetName()voidput(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, int serviceContractId)voidrefresh()voidremove(java.lang.String cacheKey)-
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 java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
refresh
public void refresh()
-
put
public void put(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, int serviceContractId)
-
remove
public void remove(java.lang.String cacheKey)
-
getByConnectionId
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getByConnectionId(java.lang.String connectionId, ServiceContract serviceContract)
-
getByCustomerId
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getByCustomerId(java.lang.String customerId, ServiceContract serviceContract)
-
getFromDatabaseAndEnrich
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getFromDatabaseAndEnrich(java.lang.String customerId, ServiceContract serviceContract)
-
getName
public java.lang.String getName()
-
-