Package org.cyclos.impl.system
Interface LocalizationServiceLocal
-
- All Superinterfaces:
LocalizationService,Service
public interface LocalizationServiceLocal extends LocalizationService
Component used to retrieve data about localization elements, like countries or time zones
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getCountryCodes()Returns all accepted 2-letter iso country codesStringgetCountryName(String code)Returns the country name translated to the current locale according to the ISO country code passed.StringgetDefaultCountryForLanguage(String language)Returns the default country code for a given language code, if anyLocalizationDatagetLocalizationData(String selectedCountryCode, String selectedTimeZoneId)Returns data for editing a country / time zone combinationList<String>listCountryCodes()Returns a list of country codesList<String>listTimeZoneIds()Returns a list of time zone idsList<String>listTimeZoneIdsForCountry(String countryCode)Returns a list of time zone ids-
Methods inherited from interface org.cyclos.services.system.LocalizationService
listCountries, listTimeZones, listTimeZonesByCountry
-
-
-
-
Method Detail
-
getCountryName
String getCountryName(String code)
Returns the country name translated to the current locale according to the ISO country code passed.
-
getDefaultCountryForLanguage
String getDefaultCountryForLanguage(String language)
Returns the default country code for a given language code, if any
-
getLocalizationData
LocalizationData getLocalizationData(String selectedCountryCode, String selectedTimeZoneId)
Returns data for editing a country / time zone combination
-
-