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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService

    PROPERTY_COCKPITNG_LEGACY_WIDGET_CONFIGURATION_PERSISTENCE_ENABLED, PROPERTY_COCKPITNG_LOCALIZATION_LOCALES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
     
    void
     
    void
    setGlobalProperties(com.hybris.cockpitng.core.util.CockpitProperties globalProperties)
     
    void
     

    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 Details

  • Constructor Details

    • BackofficeLocaleService

      public BackofficeLocaleService()
  • Method Details

    • getAllLocales

      public List<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(Locale locale)
      Specified by:
      setCurrentLocale in interface com.hybris.cockpitng.i18n.CockpitLocaleService
      Overrides:
      setCurrentLocale in class com.hybris.cockpitng.i18n.impl.DefaultCockpitLocaleService
    • getAllUILocales

      public List<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