Class 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

      Fields 
      Modifier and Type Field Description
      static java.lang.String LANG_PACKS_PROPERTY  
      • Fields inherited from class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService

        PROPERTY_COCKPITNG_LEGACY_WIDGET_CONFIGURATION_PERSISTENCE_ENABLED, PROPERTY_COCKPITNG_LOCALIZATION_LOCALES
    • 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()  
      void reset()  
      void setCurrentLocale​(java.util.Locale locale)  
      void setGlobalProperties​(com.hybris.cockpitng.core.util.CockpitProperties globalProperties)  
      void setI18nService​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LANG_PACKS_PROPERTY

        public static final java.lang.String LANG_PACKS_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • BackofficeLocaleService

        public BackofficeLocaleService()
    • Method Detail

      • getAllLocales

        public java.util.List<java.util.Locale> getAllLocales()
        Specified by:
        getAllLocales in interface com.hybris.cockpitng.i18n.CockpitLocaleService
        Overrides:
        getAllLocales in class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
      • setCurrentLocale

        public void setCurrentLocale​(java.util.Locale locale)
        Specified by:
        setCurrentLocale in interface com.hybris.cockpitng.i18n.CockpitLocaleService
        Overrides:
        setCurrentLocale in class com.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:
        reset in interface com.hybris.cockpitng.core.util.Resettable
        Overrides:
        reset in class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService