Package com.hybris.backoffice.i18n
Class BackofficeLocaleService
- java.lang.Object
-
- com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
-
- com.hybris.backoffice.i18n.BackofficeLocaleService
-
- All Implemented Interfaces:
com.hybris.cockpitng.core.util.Resettable,com.hybris.cockpitng.i18n.CockpitLocaleService
public class BackofficeLocaleService extends com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleServiceManages the UI locale. Uses the ZK locale and the on-premise i18nService locale as well.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLANG_PACKS_PROPERTY
-
Constructor Summary
Constructors Constructor Description BackofficeLocaleService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.Locale>getAllLocales()java.util.List<java.util.Locale>getAllUILocales()voidreset()voidsetCurrentLocale(java.util.Locale locale)voidsetGlobalProperties(com.hybris.cockpitng.core.util.CockpitProperties globalProperties)voidsetI18nService(I18NService i18nService)-
Methods inherited from class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
buildContext, executeWithLocale, getAllCockpitLocales, getAvailableCockpitLocales, getAvailableDataLocales, getCockpitConfigurationService, getCockpitLocalesFactory, getCockpitProperties, getCurrentLocale, getDefaultDataLocale, getEnabledDataLocales, getZKSession, isDataLocaleEnabled, isLocalePersistenceOnToggleEnabled, lookupZkSession, saveLocales, setAuthorityGroupService, setCockpitConfigurationService, setCockpitLocalesFactory, setCockpitProperties, setWidgetConfigurationContextDecoratorList, toggleDataLocale
-
-
-
-
Field Detail
-
LANG_PACKS_PROPERTY
public static final java.lang.String LANG_PACKS_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllLocales
public java.util.List<java.util.Locale> getAllLocales()
- Specified by:
getAllLocalesin interfacecom.hybris.cockpitng.i18n.CockpitLocaleService- Overrides:
getAllLocalesin classcom.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
-
setCurrentLocale
public void setCurrentLocale(java.util.Locale locale)
- Specified by:
setCurrentLocalein interfacecom.hybris.cockpitng.i18n.CockpitLocaleService- Overrides:
setCurrentLocalein classcom.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
-
getAllUILocales
public java.util.List<java.util.Locale> getAllUILocales()
-
setI18nService
public void setI18nService(I18NService i18nService)
-
setGlobalProperties
public void setGlobalProperties(com.hybris.cockpitng.core.util.CockpitProperties globalProperties)
-
reset
public void reset()
- Specified by:
resetin interfacecom.hybris.cockpitng.core.util.Resettable- Overrides:
resetin classcom.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
-
-