Class GeoCodeService
- java.lang.Object
-
- fr.paris.lutece.plugins.geocode.v1.web.service.GeoCodeService
-
public class GeoCodeService extends Object
Service regarding identity quality.
-
-
Constructor Summary
Constructors Constructor Description GeoCodeService()Simple ConstructorGeoCodeService(IGeoCodeTransportProvider transportProvider)Constructor with IIdentityTransportProvider in parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CitygetCityByCodeAndDate(String strCodeCity, Date dateRef)Get the city informations from a code INSEE and a validity dateCountrygetCountryByCodeAndDate(String strCodeCountry, Date dateRef)Get a country for a code and a nameList<City>getListCitiesByNameAndDate(String strNameCity, Date dateRef)Get the list of cities from an exact name and a validity dateList<City>getListCitiesByNameAndDateLike(String strNameCity, Date dateRef)Get the list of cities from a name and a validity dateList<Country>getListCountryByNameAndDate(String strNameCountry, Date dateRef)Get a list of country from name and datevoidsetTransportProvider(IGeoCodeTransportProvider transportProvider)setter of transportProvider parameter
-
-
-
Constructor Detail
-
GeoCodeService
public GeoCodeService()
Simple Constructor
-
GeoCodeService
public GeoCodeService(IGeoCodeTransportProvider transportProvider)
Constructor with IIdentityTransportProvider in parameters- Parameters:
transportProvider- IIdentityQualityTransportProvider
-
-
Method Detail
-
setTransportProvider
public void setTransportProvider(IGeoCodeTransportProvider transportProvider)
setter of transportProvider parameter- Parameters:
transportProvider- IIdentityQualityTransportProvider
-
getCityByCodeAndDate
public City getCityByCodeAndDate(String strCodeCity, Date dateRef) throws Exception
Get the city informations from a code INSEE and a validity date- Parameters:
strCodeCity- the code INSEE of the citydateRef- the date validity- Returns:
- a city information
IdentityDto - Throws:
Exception
-
getListCitiesByNameAndDate
public List<City> getListCitiesByNameAndDate(String strNameCity, Date dateRef) throws Exception
Get the list of cities from an exact name and a validity date- Parameters:
strNameCity- the name of the citydateRef- the date validity- Returns:
- a list of cities
IdentityDto - Throws:
Exception
-
getListCitiesByNameAndDateLike
public List<City> getListCitiesByNameAndDateLike(String strNameCity, Date dateRef) throws Exception
Get the list of cities from a name and a validity date- Parameters:
strNameCity- the name of the citydateRef- the date validity- Returns:
- a list of cities
IdentityDto - Throws:
Exception
-
getListCountryByNameAndDate
public List<Country> getListCountryByNameAndDate(String strNameCountry, Date dateRef) throws Exception
Get a list of country from name and date- Parameters:
strNameCountry-dateRef-- Returns:
- Throws:
Exception
-
-