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 Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>getCitiesCodesListByDate(java.util.Date dateCity)Get list of city codes by datejava.util.List<City>getCitiesListByName(java.lang.String strSearchBeginningVal)Deprecated.java.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)Deprecated.java.util.List<City>getCityByCode(java.lang.String strCode)Deprecated.java.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
@Deprecated public java.util.List<City> getCityByCode(java.lang.String strCode)
Deprecated.Description copied from interface:IGeoCodeProviderget city by code- Specified by:
getCityByCodein interfaceIGeoCodeProvider- Returns:
- the city (as Optional)
-
getCitiesCodesListByDate
public java.util.List<java.lang.String> getCitiesCodesListByDate(java.util.Date dateCity)
Description copied from interface:IGeoCodeProviderGet list of city codes by date- Specified by:
getCitiesCodesListByDatein interfaceIGeoCodeProvider- Returns:
-
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
@Deprecated public java.util.List<City> getCitiesListByNameLike(java.lang.String strSearchBeginningVal)
Deprecated.Description copied from interface:IGeoCodeProvidersearch cities by name beginning with a string- Specified by:
getCitiesListByNameLikein interfaceIGeoCodeProvider- Returns:
- the list
-
getCitiesListByName
@Deprecated public java.util.List<City> getCitiesListByName(java.lang.String strSearchBeginningVal)
Deprecated.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)
-
-