Class GeocodesService


  • public class GeocodesService
    extends Object
    • Constructor Detail

      • GeocodesService

        public GeocodesService()
    • Method Detail

      • processCountryAndCityForCreate

        public static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> processCountryAndCityForCreate​(Identity identity,
                                                                                                                                      List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto> attrToCreate,
                                                                                                                                      String clientCode)
                                                                                                                               throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • processCountryAndCityForUpdate

        public static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> processCountryAndCityForUpdate​(Identity identity,
                                                                                                                                      List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto> attrToCreate,
                                                                                                                                      List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto> attrToUpdate,
                                                                                                                                      String clientCode)
                                                                                                                               throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getAttributeListWithLabelAndCodes

        public static Map<String,​String> getAttributeListWithLabelAndCodes​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
        This method is a temporary patch to prevent from creations and updates with labels only, which could lead to duplicates creation when duplicate rules are based only on INSEE codes.
        Parameters:
        identity - the IdentityDto from which to extract the list of attributes
        Returns:
        a Map of key:value representing the attributes of the identity