Class LocaleOrchestrator

java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.locale.LocaleOrchestrator
All Implemented Interfaces:
GenericOrchestrator

@Service public class LocaleOrchestrator extends Object implements GenericOrchestrator
Owns the work for the locale endpoints.

Carries no @Transactional: locale data is static reference data held in memory, so there is no unit of work to own.

Version:
3.0.5
Author:
Stephen Prizio
  • Constructor Details

    • LocaleOrchestrator

      public LocaleOrchestrator()
  • Method Details

    • getCountryPhoneCodes

      public SortedSet<String> getCountryPhoneCodes()
      Obtains the phone codes for every supported country.
      Returns:
      country phone codes
    • getCountries

      public List<CountryDTO> getCountries()
      Obtains every supported country.
      Returns:
      CountryDTOs
    • getCurrencies

      public List<CurrencyDTO> getCurrencies()
      Obtains every supported currency.
      Returns:
      CurrencyDTOs
    • getCountryForCurrency

      public CountryDTO getCountryForCurrency(String currency)
      Obtains the country matching the given currency.
      Parameters:
      currency - currency code
      Returns:
      CountryDTO
    • getCurrencyForCountry

      public CurrencyDTO getCurrencyForCountry(String country)
      Obtains the currency matching the given country.
      Parameters:
      country - country code
      Returns:
      CurrencyDTO