Class GeoCodesLocal
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodes.service.GeoCodesLocal
-
- All Implemented Interfaces:
IGeoCodeProvider
public class GeoCodesLocal extends Object implements IGeoCodeProvider
-
-
Constructor Summary
Constructors Constructor Description GeoCodesLocal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<City>getCitiesListByName(String strSearchBeginningVal)search cities by exact nameList<City>getCitiesListByNameAndDate(String strSearchBeginningVal, Date dateCity)search cities by name beginning with a string and a dateList<City>getCitiesListByNameAndDateLike(String strSearchBeginningVal, Date dateCity)search cities by name beginning with a string and a dateList<City>getCitiesListByNameLike(String strSearchBeginningVal)search cities by name beginning with a stringOptional<City>getCityByCode(String strCode)get city by codeOptional<City>getCityByDateAndCode(Date dateCity, String strCode)get city by code and dateOptional<Country>getCountryByCodeAndDate(Date dateCountry, String strCodeCountry)get country by code and dateStringgetId()Gives the id.
-
-
-
Method Detail
-
getId
public 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 Optional<City> getCityByDateAndCode(Date dateCity, String strCode)
Description copied from interface:IGeoCodeProviderget city by code and date- Specified by:
getCityByDateAndCodein interfaceIGeoCodeProvider- Returns:
- the city (as Optional)
-
getCityByCode
public Optional<City> getCityByCode(String strCode)
Description copied from interface:IGeoCodeProviderget city by code- Specified by:
getCityByCodein interfaceIGeoCodeProvider- Returns:
- the city (as Optional)
-
getCitiesListByNameAndDate
public List<City> getCitiesListByNameAndDate(String strSearchBeginningVal, 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 List<City> getCitiesListByNameAndDateLike(String strSearchBeginningVal, 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 List<City> getCitiesListByNameLike(String strSearchBeginningVal)
Description copied from interface:IGeoCodeProvidersearch cities by name beginning with a string- Specified by:
getCitiesListByNameLikein interfaceIGeoCodeProvider- Returns:
- the list
-
getCitiesListByName
public List<City> getCitiesListByName(String strSearchBeginningVal)
Description copied from interface:IGeoCodeProvidersearch cities by exact name- Specified by:
getCitiesListByNamein interfaceIGeoCodeProvider- Returns:
- the list
-
getCountryByCodeAndDate
public Optional<Country> getCountryByCodeAndDate(Date dateCountry, String strCodeCountry)
Description copied from interface:IGeoCodeProviderget country by code and date- Specified by:
getCountryByCodeAndDatein interfaceIGeoCodeProvider- Returns:
- the country (as Optional)
-
-