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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidconvertLocalToIsoCodes(List<SmarteditLanguageData> languageDataList) Deprecated, for removal: This API element is subject to removal in a future version.since 1808protected CommonI18NServiceprotected Tenantprotected I18NServiceprotected L10NServiceprotected SmarteditConfigurationFacadeRetrieve the supported smartedit languagesprotected TenantListenergetTranslationMap(Locale locale) Retrieve the translation keys and the translated values for the given locale.protected voidCache localizations list to improve performance.protected booleanprotected booleanlanguageIsSupported(Locale locale) resolveLanguageMap(Locale locale) protected voidWill put the entries of the sourceMap into the targetMap if theMap.Entryof the sourceMap has a value that is not null, empty, ot blankvoidsetCommonI18NService(CommonI18NService commonI18NService) voidsetI18nService(I18NService i18nService) voidsetL10nService(L10NService l10nService) voidsetSmarteditConfigurationFacade(SmarteditConfigurationFacade smarteditConfigurationFacade) voidsetSmarteditLanguageConverter(AbstractPopulatingConverter<Locale, SmarteditLanguageData> smarteditLanguageConverter) voidsetSmarteditLanguageDataComparator(Comparator<SmarteditLanguageData> smarteditLanguageDataComparator)
-
Constructor Details
-
DefaultSmarteditI18nFacade
public DefaultSmarteditI18nFacade()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
initializeLocalizations
protected void initializeLocalizations()Cache localizations list to improve performance. -
getTranslationMap
Description copied from interface:SmarteditI18nFacadeRetrieve the translation keys and the translated values for the given locale.- Specified by:
getTranslationMapin interfaceSmarteditI18nFacade- Parameters:
locale- locale- Returns:
- Map of attribute key and translated values
-
languageIsSupported
-
safePutAll
Will put the entries of the sourceMap into the targetMap if theMap.Entryof the sourceMap has a value that is not null, empty, ot blank -
getSupportedLanguages
Description copied from interface:SmarteditI18nFacadeRetrieve the supported smartedit languages- Specified by:
getSupportedLanguagesin interfaceSmarteditI18nFacade- Returns:
- a
ListofSmarteditLanguageData
-
resolveLanguageMap
-
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 1808Converts a languageData.isocode to hybris format (i.e. de-CH)- Parameters:
languageDataList- List of language Data
-
getL10nService
-
setL10nService
-
getI18nService
-
setI18nService
-
getSmarteditLanguageConverter
-
setSmarteditLanguageConverter
public void setSmarteditLanguageConverter(AbstractPopulatingConverter<Locale, SmarteditLanguageData> smarteditLanguageConverter) -
getSmarteditConfigurationFacade
-
setSmarteditConfigurationFacade
public void setSmarteditConfigurationFacade(SmarteditConfigurationFacade smarteditConfigurationFacade) -
getSmarteditLanguageDataComparator
-
setSmarteditLanguageDataComparator
public void setSmarteditLanguageDataComparator(Comparator<SmarteditLanguageData> smarteditLanguageDataComparator) -
getCommonI18NService
-
setCommonI18NService
-
getTenantListener
-
getCurrentTenant
-
isSystemInitialized
protected boolean isSystemInitialized()
-