Class DefaultI18NFacade
java.lang.Object
de.hybris.platform.commercefacades.i18n.impl.DefaultI18NFacade
- All Implemented Interfaces:
I18NFacade
Facade for handling Region and Country Data.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonI18NServiceprotected Converter<CountryModel,CountryData> getCountryForIsocode(String countryIso) Returns the country with the matching isocode parameter.Get the region data for a county and region ISO codeprotected Converter<RegionModel,RegionData> Get map of country iso code to list of sorted region datas for all known countries.getRegionsForCountries(Collection<String> countryIsoCodes) Get map of country iso code to list of sorted region datas for specified countries.getRegionsForCountryIso(String countryIso) Get the list of regions for a country.voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetCountryConverter(Converter<CountryModel, CountryData> countryConverter) voidsetRegionConverter(Converter<RegionModel, RegionData> regionConverter)
-
Constructor Details
-
DefaultI18NFacade
public DefaultI18NFacade()
-
-
Method Details
-
getRegion
Description copied from interface:I18NFacadeGet the region data for a county and region ISO code- Specified by:
getRegionin interfaceI18NFacade- Parameters:
countryIso- the country iso coderegionIso- the region iso code- Returns:
- the region data
-
getRegionsForCountryIso
Description copied from interface:I18NFacadeGet the list of regions for a country. The list is sorted by region name.- Specified by:
getRegionsForCountryIsoin interfaceI18NFacade- Parameters:
countryIso- the country iso code- Returns:
- the list of region datas
-
getRegionsForAllCountries
Description copied from interface:I18NFacadeGet map of country iso code to list of sorted region datas for all known countries.- Specified by:
getRegionsForAllCountriesin interfaceI18NFacade- Returns:
- map of country iso code to list of sorted region datas
-
getRegionsForCountries
Description copied from interface:I18NFacadeGet map of country iso code to list of sorted region datas for specified countries.- Specified by:
getRegionsForCountriesin interfaceI18NFacade- Parameters:
countryIsoCodes- list of country codes- Returns:
- map of country iso code to list of sorted region datas
-
getCountryForIsocode
Description copied from interface:I18NFacadeReturns the country with the matching isocode parameter.- Specified by:
getCountryForIsocodein interfaceI18NFacade- Parameters:
countryIso- the isocode of the country we want to return.- Returns:
- the country whose isocode matches the input parameter.
-
getCommonI18NService
-
setCommonI18NService
-
getRegionConverter
-
setRegionConverter
-
getCountryConverter
-
setCountryConverter
-