Class GeoCodesLocal
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodes.service.GeoCodesLocal
-
- All Implemented Interfaces:
IGeoCodeProvider
public class GeoCodesLocal extends java.lang.Object implements IGeoCodeProvider
-
-
Constructor Summary
Constructors Constructor Description GeoCodesLocal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<City>getCitiesListByName(java.lang.String strSearchBeginningVal)search cities by exact namejava.util.List<City>getCitiesListByNameAndDate(java.lang.String strSearchBeginningVal, java.util.Date dateCity)search cities by name beginning with a string and a datejava.util.List<City>getCitiesListByNameAndDateLike(java.lang.String strSearchBeginningVal, java.util.Date dateCity)search cities by name beginning with a string and a datejava.util.List<City>getCitiesListByNameLike(java.lang.String strSearchBeginningVal)search cities by name beginning with a stringjava.util.Optional<City>getCityByCode(java.lang.String strCode)get city by codejava.util.Optional<City>getCityByDateAndCode(java.util.Date dateCity, java.lang.String strCode)get city by code and datejava.util.Optional<Country>getCountryByCodeAndDate(java.util.Date dateCountry, java.lang.String strCodeCountry)get country by code and datejava.lang.StringgetId()Gives the id.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:IGeoCodeProviderGives the id. The id is used to find which geoCode providers have to be used in the task. The id must be unique among the geoCode providers.- Specified by:
getIdin interfaceIGeoCodeProvider- Returns:
- the id
-
getCityByDateAndCode
public java.util.Optional<City> getCityByDateAndCode(java.util.Date dateCity, java.lang.String strCode)
Description copied from interface:IGeoCodeProviderget city by code and date- Specified by:
getCityByDateAndCodein interfaceIGeoCodeProvider- Returns:
- the city (as Optional)
-
getCityByCode
public java.util.Optional<City> getCityByCode(java.lang.String strCode)
Description copied from interface:IGeoCodeProviderget city by code- Specified by:
getCityByCodein interfaceIGeoCodeProvider- Returns:
- the city (as Optional)
-
getCitiesListByNameAndDate
public java.util.List<City> getCitiesListByNameAndDate(java.lang.String strSearchBeginningVal, java.util.Date dateCity)
Description copied from interface:IGeoCodeProvidersearch cities by name beginning with a string and a date- Specified by:
getCitiesListByNameAndDatein interfaceIGeoCodeProvider- Returns:
- the list
-
getCitiesListByNameAndDateLike
public java.util.List<City> getCitiesListByNameAndDateLike(java.lang.String strSearchBeginningVal, java.util.Date dateCity)
Description copied from interface:IGeoCodeProvidersearch cities by name beginning with a string and a date- Specified by:
getCitiesListByNameAndDateLikein interfaceIGeoCodeProvider- Returns:
- the list
-
getCitiesListByNameLike
public java.util.List<City> getCitiesListByNameLike(java.lang.String strSearchBeginningVal)
Description copied from interface:IGeoCodeProvidersearch cities by name beginning with a string- Specified by:
getCitiesListByNameLikein interfaceIGeoCodeProvider- Returns:
- the list
-
getCitiesListByName
public java.util.List<City> getCitiesListByName(java.lang.String strSearchBeginningVal)
Description copied from interface:IGeoCodeProvidersearch cities by exact name- Specified by:
getCitiesListByNamein interfaceIGeoCodeProvider- Returns:
- the list
-
getCountryByCodeAndDate
public java.util.Optional<Country> getCountryByCodeAndDate(java.util.Date dateCountry, java.lang.String strCodeCountry)
Description copied from interface:IGeoCodeProviderget country by code and date- Specified by:
getCountryByCodeAndDatein interfaceIGeoCodeProvider- Returns:
- the country (as Optional)
-
-