Class IdentityQualityService
java.lang.Object
fr.paris.lutece.plugins.identitystore.service.identity.IdentityQualityService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeQuality(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity) computeUnicityHashCode(Identity identity) computeUnicityHashCode(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request) computeUnicityHashCode(Map<String, String> attributes) Compute an identity hashcode based on its pivot attributes values and customerId.voidenrich(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> searchAttributes, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, ServiceContract serviceContract, Identity bean) voidenrich(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> searchAttributes, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, ServiceContract serviceContract, Identity bean, boolean computeDuplicateDefinition) static IdentityQualityServiceinstance()
-
Method Details
-
instance
-
enrich
public void enrich(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> searchAttributes, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, ServiceContract serviceContract, Identity bean) -
enrich
public void enrich(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> searchAttributes, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, ServiceContract serviceContract, Identity bean, boolean computeDuplicateDefinition) -
computeQuality
public void computeQuality(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity) -
computeUnicityHashCode
public String computeUnicityHashCode(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
computeUnicityHashCode
public String computeUnicityHashCode(Identity identity) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
computeUnicityHashCode
public String computeUnicityHashCode(Map<String, String> attributes) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCompute an identity hashcode based on its pivot attributes values and customerId.- Check if the identity is France born or not
- Check if all corresponding pivot attributes are filles
- If not, return a UUID so the identity will never match another
- If all pivot attributes are filled, generated a hash with
UnicityHasher
- Parameters:
attributes- the attribute values- Returns:
- a hash code
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-