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.DefaultCockpitLocaleService
Manages the UI locale. Uses the ZK locale and the on-premise i18nService locale as well.
-
Field Summary
FieldsFields inherited from class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
PROPERTY_COCKPITNG_LEGACY_WIDGET_CONFIGURATION_PERSISTENCE_ENABLED, PROPERTY_COCKPITNG_LOCALIZATION_LOCALES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreset()voidsetCurrentLocale(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 Details
-
LANG_PACKS_PROPERTY
- See Also:
-
-
Constructor Details
-
BackofficeLocaleService
public BackofficeLocaleService()
-
-
Method Details
-
getAllLocales
- Specified by:
getAllLocalesin interfacecom.hybris.cockpitng.i18n.CockpitLocaleService- Overrides:
getAllLocalesin classcom.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
-
setCurrentLocale
- Specified by:
setCurrentLocalein interfacecom.hybris.cockpitng.i18n.CockpitLocaleService- Overrides:
setCurrentLocalein classcom.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
-
getAllUILocales
-
setI18nService
-
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
-