Class GeoCodesService

java.lang.Object
fr.paris.lutece.plugins.geocodes.service.GeoCodesService

public class GeoCodesService extends Object
  • Method Details

    • getInstance

      public static GeoCodesService getInstance()
      Get the instance of GeoCodeService
      Returns:
      an instance of GeoCodeService
    • getCityByCode

      @Deprecated public List<City> getCityByCode(String strCode)
      Deprecated.
      get city by code
      Parameters:
      strCodel -
      Returns:
      the city (as Optional)
    • getCitiesListByName

      @Deprecated public List<City> getCitiesListByName(String strSearchVal)
      Deprecated.
      search cities by name beginning with a string
      Parameters:
      strSearchBeginningVal -
      Returns:
      the list
    • getCitiesListByNameLike

      @Deprecated public List<City> getCitiesListByNameLike(String strSearchBeginningVal)
      Deprecated.
      search cities by name beginning with a string
      Parameters:
      strSearchBeginningVal -
      Returns:
      the list
    • getCitiesListByNameAndDate

      public List<City> getCitiesListByNameAndDate(String strSearchBeginningVal, Date dateCity)
      search cities by name beginning with a string and a date
      Parameters:
      strSearchBeginningVal -
      dateCity -
      Returns:
      the list
    • getCitiesListByNameAndDateLike

      public List<City> getCitiesListByNameAndDateLike(String strSearchBeginningVal, Date dateCity)
      search cities by name beginning with a string and a date
      Parameters:
      strSearchBeginningVal -
      dateCity -
      Returns:
      the list
    • getCitiesCodesListByDate

      public List<String> getCitiesCodesListByDate(Date dateCity)
      search cities codes by date
      Parameters:
      dateCity -
      Returns:
      the list
    • getCountryByCode

      public Optional<Country> getCountryByCode(String strCode)
      get country by code
      Parameters:
      strCode -
      Returns:
      the country (as Optional)
    • getCountryByCode

      @Deprecated public Optional<Country> getCountryByCode(String strCode, boolean bAttached)
      Deprecated.
      get country by code
      Parameters:
      strCode -
      Returns:
      the country (as Optional)
    • getCountriesListByNameAndDate

      public List<Country> getCountriesListByNameAndDate(String strSearchBeginningVal, Date dateRef)
      search countries by name
      Parameters:
      strSearchBeginningVal -
      Returns:
      the list
    • getCountriesListByName

      @Deprecated public List<Country> getCountriesListByName(String strCountryName)
      Deprecated.
      get country list by name
      Parameters:
      strCountryName -
      Returns:
      the list
    • getCityByDateAndCode

      public Optional<City> getCityByDateAndCode(Date dateCity, String strCode)
      get city by code and date
      Parameters:
      strCodel -
      dateCity -
      Returns:
      the city (as Optional)
    • getCitiesListByLastDateUpdate

      public static List<City> getCitiesListByLastDateUpdate()
      get all cities order by lastUpdateDate
      Returns:
      the list
    • addCityChanges

      public static void addCityChanges(City cityUpdate, String author, String status)
      update the city informations
      Parameters:
      cityUpdate - : the city to update
    • updateCityChanges

      public static void updateCityChanges(City cityUpdate, String author, String status)
      update the city changes informations
      Parameters:
      cityUpdate - : the city to update
    • createCity

      public static void createCity(City cityNew, String author, String applied)
      create the new city change
      Parameters:
      cityNew - : the city to create
    • checkDateValidityStart

      public static Date checkDateValidityStart(Date dateCheck)
    • checkChangesExistence

      public static boolean checkChangesExistence(City city)
    • checkDateFormat

      public static boolean checkDateFormat(String strDateCity)