Class IdentityQualityService

java.lang.Object
fr.paris.lutece.plugins.identitystore.service.identity.IdentityQualityService

public class IdentityQualityService extends Object
  • Method Details

    • instance

      public static IdentityQualityService 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, List<String> excludedUnicityHashCodeList) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Compute 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
      excludedUnicityHashCodeList - list of unicity hashcodes to avoid (if computed hash matches one, returns a random UUID)
      Returns:
      a hash code
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException