Class DefaultODataLocalizationService

    • Constructor Detail

      • DefaultODataLocalizationService

        public DefaultODataLocalizationService()
    • Method Detail

      • getLocaleForLanguage

        public java.util.Locale getLocaleForLanguage​(java.lang.String isoCode)
        Description copied from interface: ODataLocalizationService
        Looks up a locale supported by the Commerce Suite by the standard ISO code, i.e "en"
        Specified by:
        getLocaleForLanguage in interface ODataLocalizationService
        Parameters:
        isoCode - The isoCode used to search for an existing LanguageModel
        Returns:
        The locale
      • getSupportedLocales

        public java.util.Locale[] getSupportedLocales()
        Description copied from interface: ODataLocalizationService
        Looks up a all locales supported by this Commerce Suite installation.
        Specified by:
        getSupportedLocales in interface ODataLocalizationService
        Returns:
        an array of locales. May return empty if no locales are supported. Will never return null.
      • setCommonI18NService

        public void setCommonI18NService​(CommonI18NService commonI18NService)