Class DefaultODataLocalizationService
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.DefaultODataLocalizationService
-
- All Implemented Interfaces:
ODataLocalizationService
public class DefaultODataLocalizationService extends java.lang.Object implements ODataLocalizationService
Default implementation of theODataLocalizationService
-
-
Constructor Summary
Constructors Constructor Description DefaultODataLocalizationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.LocalegetCommerceSuiteLocale()Gets the locale of the Commerce Suiteprotected CommonI18NServicegetCommonI18NService()java.util.LocalegetLocaleForLanguage(java.lang.String isoCode)Looks up a locale supported by the Commerce Suite by the standard ISO code, i.e "en"java.util.Locale[]getSupportedLocales()Looks up a all locales supported by this Commerce Suite installation.voidsetCommonI18NService(CommonI18NService commonI18NService)
-
-
-
Method Detail
-
getLocaleForLanguage
public java.util.Locale getLocaleForLanguage(java.lang.String isoCode)
Description copied from interface:ODataLocalizationServiceLooks up a locale supported by the Commerce Suite by the standard ISO code, i.e "en"- Specified by:
getLocaleForLanguagein interfaceODataLocalizationService- Parameters:
isoCode- The isoCode used to search for an existing LanguageModel- Returns:
- The locale
-
getSupportedLocales
public java.util.Locale[] getSupportedLocales()
Description copied from interface:ODataLocalizationServiceLooks up a all locales supported by this Commerce Suite installation.- Specified by:
getSupportedLocalesin interfaceODataLocalizationService- Returns:
- an array of locales. May return empty if no locales are supported. Will never return null.
-
getCommerceSuiteLocale
public java.util.Locale getCommerceSuiteLocale()
Description copied from interface:ODataLocalizationServiceGets the locale of the Commerce Suite- Specified by:
getCommerceSuiteLocalein interfaceODataLocalizationService- Returns:
- The locale
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
-