Class DefaultTypeSystemLocalizationHelper
java.lang.Object
com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultTypeSystemLocalizationHelper
- All Implemented Interfaces:
TypeSystemLocalizationHelper
public class DefaultTypeSystemLocalizationHelper
extends Object
implements TypeSystemLocalizationHelper
Provides localization for Types & Attributes.
Loads localization for all
Localizations are loaded for all UI locales
Loads localization for all
TypeModel
on first localizeType(TypeModel, DataType.Builder) call. All AttributeDescriptorModel localizations
are loaded on first localizeAttribute(AttributeDescriptorModel, DataAttribute.Builder)Localizations are loaded for all UI locales
CockpitLocaleService.getAllUILocales().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAttributeLocalization(AttributeDescriptorModel attributeDescriptor, String attributeName) protected com.hybris.cockpitng.i18n.CockpitLocaleServiceprotected FlexibleSearchServiceprotected com.google.common.collect.Table<String,String, com.google.common.collect.Table<String, Locale, String>> voidlocalizeAttribute(AttributeDescriptorModel attributeDescriptorModel, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute.Builder attrBuilder) Provides localization forAttributeDescriptorModelvoidlocalizeType(TypeModel platformType, com.hybris.cockpitng.dataaccess.facades.type.DataType.Builder typeBuilder) Provides localization forTypeModelvoidsetCockpitLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
Constructor Details
-
DefaultTypeSystemLocalizationHelper
public DefaultTypeSystemLocalizationHelper()
-
-
Method Details
-
localizeAttribute
public void localizeAttribute(AttributeDescriptorModel attributeDescriptorModel, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute.Builder attrBuilder) Description copied from interface:TypeSystemLocalizationHelperProvides localization forAttributeDescriptorModel- Specified by:
localizeAttributein interfaceTypeSystemLocalizationHelper- Parameters:
attributeDescriptorModel- attribute to be localizedattrBuilder- builder that will be updated with localized labels
-
localizeType
public void localizeType(TypeModel platformType, com.hybris.cockpitng.dataaccess.facades.type.DataType.Builder typeBuilder) Description copied from interface:TypeSystemLocalizationHelperProvides localization forTypeModel- Specified by:
localizeTypein interfaceTypeSystemLocalizationHelper- Parameters:
platformType- type to be localizedtypeBuilder- builder that will be updated with localized labels
-
findAttributeLocalization
protected Map<Locale,String> findAttributeLocalization(AttributeDescriptorModel attributeDescriptor, String attributeName) -
findTypeLocalization
-
loadAttributeLocalization
-
loadTypeLocalization
-
loadLocalesMap
-
getCockpitLocaleService
protected com.hybris.cockpitng.i18n.CockpitLocaleService getCockpitLocaleService() -
getFlexibleSearchService
-
setCockpitLocaleService
public void setCockpitLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService) -
setFlexibleSearchService
-