Class GeocodesService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.geocodes.GeocodesService
-
public class GeocodesService extends Object
-
-
Constructor Summary
Constructors Constructor Description GeocodesService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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)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)
-
-
-
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- theIdentityDtofrom which to extract the list of attributes- Returns:
- a
Mapof key:value representing the attributes of the identity
-
-