Class LocaleOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.locale.LocaleOrchestrator
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains every supported country.getCountryForCurrency(String currency) Obtains the country matching the given currency.Obtains the phone codes for every supported country.Obtains every supported currency.getCurrencyForCountry(String country) Obtains the currency matching the given country.
-
Constructor Details
-
LocaleOrchestrator
public LocaleOrchestrator()
-
-
Method Details
-
getCountryPhoneCodes
-
getCountries
-
getCurrencies
-
getCountryForCurrency
Obtains the country matching the given currency.- Parameters:
currency- currency code- Returns:
CountryDTO
-
getCurrencyForCountry
Obtains the currency matching the given country.- Parameters:
country- country code- Returns:
CurrencyDTO
-