Package de.hybris.platform.servicelayer
Class StubLocaleProvider
java.lang.Object
de.hybris.platform.servicelayer.StubLocaleProvider
- All Implemented Interfaces:
LocaleProvider,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns current (session) data locale to be used to read or store localized attribute data.getFallbacks(Locale requestedLocale) booleanReturnstrueif for the current session theLocalefallback is enabled.toDataLocale(Locale external) Converts a arbitrary locale instance into one which is allowed to read and write data with.
-
Constructor Details
-
StubLocaleProvider
-
-
Method Details
-
getCurrentDataLocale
Description copied from interface:LocaleProviderReturns current (session) data locale to be used to read or store localized attribute data. May be other thanI18NService.getCurrentLocale()!- Specified by:
getCurrentDataLocalein interfaceLocaleProvider
-
getFallbacks
Description copied from interface:LocaleProvider- Specified by:
getFallbacksin interfaceLocaleProvider- Parameters:
requestedLocale- the Locale for which all fallback Locales are requested.- Returns:
nullif the locale fallback is not enabled (seeLocaleProvider.isFallbackEnabled()).
-
isFallbackEnabled
public boolean isFallbackEnabled()Description copied from interface:LocaleProviderReturnstrueif for the current session theLocalefallback is enabled.- Specified by:
isFallbackEnabledin interfaceLocaleProvider- Returns:
falseotherwise.
-
toDataLocale
Description copied from interface:LocaleProviderConverts a arbitrary locale instance into one which is allowed to read and write data with.- Specified by:
toDataLocalein interfaceLocaleProvider- Parameters:
external- the locale
-