Class DefaultCommerceCommonI18NService
java.lang.Object
de.hybris.platform.commerceservices.i18n.impl.DefaultCommerceCommonI18NService
- All Implemented Interfaces:
CommerceCommonI18NService
Implementation for
CommerceCommonI18NService. Class also extends DefaultCommonI18NService to provide
currency and language -related methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalecreateLocale(String localeString) Method for getting list of countries stored as a catalog version property.Method for getting all currencies for the current store.Method for getting list of languages stored as a catalog version property.protected BaseSiteServiceprotected BaseStoreServiceprotected CommonI18NServiceGet the current currencyGet the current languageGet the current localeMethod for getting the default currency for the current store.Method for getting the default language for the current store.protected I18NServicegetLocaleForLanguage(LanguageModel language) Get the site specific locale for the specified languagevoidsetBaseSiteService(BaseSiteService baseSiteService) voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetCurrentCurrency(CurrencyModel currency) Set current currency.voidsetCurrentLanguage(LanguageModel language) Set current language.voidsetI18nService(I18NService i18nService)
-
Constructor Details
-
DefaultCommerceCommonI18NService
public DefaultCommerceCommonI18NService()
-
-
Method Details
-
getAllCurrencies
Description copied from interface:CommerceCommonI18NServiceMethod for getting all currencies for the current store.- Specified by:
getAllCurrenciesin interfaceCommerceCommonI18NService- Returns:
- list of currencies supported.
-
getAllLanguages
Description copied from interface:CommerceCommonI18NServiceMethod for getting list of languages stored as a catalog version property.- Specified by:
getAllLanguagesin interfaceCommerceCommonI18NService- Returns:
- list of languages supported.
-
getDefaultLanguage
Description copied from interface:CommerceCommonI18NServiceMethod for getting the default language for the current store.- Specified by:
getDefaultLanguagein interfaceCommerceCommonI18NService- Returns:
- the default language.
-
getDefaultCurrency
Description copied from interface:CommerceCommonI18NServiceMethod for getting the default currency for the current store.- Specified by:
getDefaultCurrencyin interfaceCommerceCommonI18NService- Returns:
- the default currency.
-
getAllCountries
Description copied from interface:CommerceCommonI18NServiceMethod for getting list of countries stored as a catalog version property.- Specified by:
getAllCountriesin interfaceCommerceCommonI18NService- Returns:
- list of countries supported.
-
getCurrentCurrency
Description copied from interface:CommerceCommonI18NServiceGet the current currency- Specified by:
getCurrentCurrencyin interfaceCommerceCommonI18NService- Returns:
- the current currency
-
setCurrentCurrency
Description copied from interface:CommerceCommonI18NServiceSet current currency.- Specified by:
setCurrentCurrencyin interfaceCommerceCommonI18NService- Parameters:
currency- the currency to be set as a current currency.
-
getCurrentLocale
Description copied from interface:CommerceCommonI18NServiceGet the current locale- Specified by:
getCurrentLocalein interfaceCommerceCommonI18NService- Returns:
- the current currency
-
getLocaleForLanguage
Description copied from interface:CommerceCommonI18NServiceGet the site specific locale for the specified language- Specified by:
getLocaleForLanguagein interfaceCommerceCommonI18NService- Parameters:
language- the language- Returns:
- the locale
-
getCurrentLanguage
Description copied from interface:CommerceCommonI18NServiceGet the current language- Specified by:
getCurrentLanguagein interfaceCommerceCommonI18NService- Returns:
- the current language
-
setCurrentLanguage
Description copied from interface:CommerceCommonI18NServiceSet current language.- Specified by:
setCurrentLanguagein interfaceCommerceCommonI18NService- Parameters:
language- the language to be set as a current language.
-
createLocale
-
getBaseSiteService
-
setBaseSiteService
-
getBaseStoreService
-
setBaseStoreService
-
getI18nService
-
setI18nService
-
getCommonI18NService
-
setCommonI18NService
-
getLocales
-