Class DefaultSmarteditI18nFacade

java.lang.Object
de.hybris.platform.smarteditwebservices.i18n.facade.impl.DefaultSmarteditI18nFacade
All Implemented Interfaces:
SmarteditI18nFacade, org.springframework.beans.factory.InitializingBean

public class DefaultSmarteditI18nFacade extends Object implements SmarteditI18nFacade, org.springframework.beans.factory.InitializingBean
Default implementation of SmarteditI18nFacade to retrieve cms management data
  • Constructor Details

    • DefaultSmarteditI18nFacade

      public DefaultSmarteditI18nFacade()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • initializeLocalizations

      protected void initializeLocalizations()
      Cache localizations list to improve performance.
    • getTranslationMap

      public Map<String,String> getTranslationMap(Locale locale)
      Description copied from interface: SmarteditI18nFacade
      Retrieve the translation keys and the translated values for the given locale.
      Specified by:
      getTranslationMap in interface SmarteditI18nFacade
      Parameters:
      locale - locale
      Returns:
      Map of attribute key and translated values
    • languageIsSupported

      protected boolean languageIsSupported(Locale locale)
      Checks the supported Locale languages against the Locale language
      Parameters:
      locale - Locale to check
      Returns:
      is the language of the Locale locale supported
    • safePutAll

      protected void safePutAll(Map<String,String> targetMap, Map<String,String> sourceMap)
      Will put the entries of the sourceMap into the targetMap if the Map.Entry of the sourceMap has a value that is not null, empty, ot blank
      Parameters:
      targetMap - The Map to be populated
      sourceMap - The Map to be populated from
    • getSupportedLanguages

      public List<SmarteditLanguageData> getSupportedLanguages()
      Description copied from interface: SmarteditI18nFacade
      Retrieve the supported smartedit languages
      Specified by:
      getSupportedLanguages in interface SmarteditI18nFacade
      Returns:
      a List of SmarteditLanguageData
    • resolveLanguageMap

      protected Map<String,String> resolveLanguageMap(Locale locale)
    • convertLocalToIsoCodes

      @Deprecated(since="1808", forRemoval=true) protected void convertLocalToIsoCodes(List<SmarteditLanguageData> languageDataList)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1808
      Converts a languageData.isocode to hybris format (i.e. de-CH)
      Parameters:
      languageDataList - List of language Data
    • getL10nService

      protected L10NService getL10nService()
    • setL10nService

      public void setL10nService(L10NService l10nService)
    • getI18nService

      protected I18NService getI18nService()
    • setI18nService

      public void setI18nService(I18NService i18nService)
    • getSmarteditLanguageConverter

      protected AbstractPopulatingConverter<Locale,SmarteditLanguageData> getSmarteditLanguageConverter()
    • setSmarteditLanguageConverter

      public void setSmarteditLanguageConverter(AbstractPopulatingConverter<Locale,SmarteditLanguageData> smarteditLanguageConverter)
    • getSmarteditConfigurationFacade

      protected SmarteditConfigurationFacade getSmarteditConfigurationFacade()
    • setSmarteditConfigurationFacade

      public void setSmarteditConfigurationFacade(SmarteditConfigurationFacade smarteditConfigurationFacade)
    • getSmarteditLanguageDataComparator

      public Comparator<SmarteditLanguageData> getSmarteditLanguageDataComparator()
    • setSmarteditLanguageDataComparator

      public void setSmarteditLanguageDataComparator(Comparator<SmarteditLanguageData> smarteditLanguageDataComparator)
    • getCommonI18NService

      protected CommonI18NService getCommonI18NService()
    • setCommonI18NService

      public void setCommonI18NService(CommonI18NService commonI18NService)
    • getTenantListener

      protected TenantListener getTenantListener()
    • getCurrentTenant

      protected Tenant getCurrentTenant()
    • isSystemInitialized

      protected boolean isSystemInitialized()