public class ClassificationSystemCPQAttributesProviderImpl extends Object implements ClassificationSystemCPQAttributesProvider
ClassificationSystemCPQAttributesProvider.| Constructor and Description |
|---|
ClassificationSystemCPQAttributesProviderImpl() |
public ClassificationSystemCPQAttributesProviderImpl()
public ClassificationSystemCPQAttributesContainer getCPQAttributes(String name, Map<String,ClassificationSystemCPQAttributesContainer> nameMap)
ClassificationSystemCPQAttributesProvidergetCPQAttributes in interface ClassificationSystemCPQAttributesProvidername - cstic namenameMap - to cache resultsprotected ClassificationSystemCPQAttributesContainer getNameFromAttribute(ClassificationAttributeModel attr, ClassificationSystemVersionModel systemVersion)
protected Map<String,Collection<MediaModel>> extractCsticValueMediaFromAttributeModel(Collection<ClassificationAttributeValueModel> attrValues)
protected final Map<String,Collection<MediaModel>> addMediaEntries(Collection<ClassificationAttributeValueModel> attrValues)
protected Collection<MediaModel> extractCsticMediaFromAttributeModel(ClassificationAttributeModel attr)
protected Map<String,String> extractValueNamesFromAttributeModel(Collection<ClassificationAttributeValueModel> attrValues)
public List<ImageData> getCsticMedia(ClassificationSystemCPQAttributesContainer cpqAttributes)
ClassificationSystemCPQAttributesProvidergetCsticMedia in interface ClassificationSystemCPQAttributesProvidercpqAttributes - CPQ attribute container with hybris mediapublic List<ImageData> getCsticValueMedia(String csticValueKey, ClassificationSystemCPQAttributesContainer cpqAttributes)
ClassificationSystemCPQAttributesProvidergetCsticValueMedia in interface ClassificationSystemCPQAttributesProvidercsticValueKey - key of the cstic valuecpqAttributes - CPQ attribute container with hybris mediaprotected List<ImageData> convertMediaToImages(Collection<MediaModel> media, Map<String,CPQImageType> cpqMediaFormatQualifiers)
public String getLongText(CsticModel model, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isDebugEnabled)
ClassificationSystemCPQAttributesProvidergetLongText in interface ClassificationSystemCPQAttributesProvidermodel - model of the csticcpqAttributes - CPQ attribute container with hybris long textisDebugEnabled - only if true, debug logs will be writtenprotected void logValue(String className, String nameType, String name, String targetType, String sourceType, String value, boolean isDebugEnabled)
public String getDisplayName(CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isDebugEnabled)
ClassificationSystemCPQAttributesProvidergetDisplayName in interface ClassificationSystemCPQAttributesProvidercsticModel - model of the csticcpqAttributes - CPQ attribute container with hybris cstic nameisDebugEnabled - only if true, debug logs will be writtenprotected ClassificationAttributeModel getClassificationAttribute(String name, ClassificationSystemVersionModel systemVersion)
name - Language independent name of characteristicsystemVersion - public String getDisplayValueName(CsticValueModel valueModel, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isDebugEnabled)
ClassificationSystemCPQAttributesProvidergetDisplayValueName in interface ClassificationSystemCPQAttributesProvidervalueModel - value model of the cstic valuecsticModel - model of the csticcpqAttributes - CPQ attribute container with hybris cstic value nameisDebugEnabled - only if true, debug logs will be writtenpublic String getOverviewValueName(CsticValueModel valueModel, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isDebugEnabled)
ClassificationSystemCPQAttributesProvidergetOverviewValueName in interface ClassificationSystemCPQAttributesProvidervalueModel - value model of the cstic valuecsticModel - model of the csticcpqAttributes - CPQ attribute container with hybris cstic value nameisDebugEnabled - only if true, debug logs will be writtenprotected String getValueName(CsticValueModel valueModel, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isDebugEnabled)
protected ClassificationSystemVersionModel getSystemVersion()
protected void determineAvailableClassificationSystems(List<CatalogModel> catalogs, List<ClassificationSystemModel> availableClassificationSystems, List<ClassificationSystemModel> availableClassificationSystemsMatchingPattern)
protected String getClassificationSystemSubString()
protected BaseStoreModel getBaseStore()
public boolean isDebugEnabled()
isDebugEnabled in interface ClassificationSystemCPQAttributesProvidertrue only if debug log is enabled for the attribute containerpublic void setClassificationService(ClassificationSystemService classificationService)
classificationService - injects the classification service, required to access the hybris classification systempublic void setBaseStoreService(BaseStoreService baseStoreService)
baseStoreService - injects the base store service, required to access the hybris classification systemprotected UiTypeFinder getUiTypeFinder()
public void setUiTypeFinder(UiTypeFinder uiTypeFinder)
uiTypeFinder - characteristic UI type finderprotected ValueFormatTranslator getValueFormatTranslator()
public void setValueFormatTranslator(ValueFormatTranslator valueFormatTranslator)
valueFormatTranslator - value format translatorprotected CPQImageFormatMapping getCpqCsticImageFormatMapping()
public void setCpqCsticImageFormatMapping(CPQImageFormatMapping cpqCsticImageFormatMapping)
cpqCsticImageFormatMapping - the cpqCsticImageFormatMapping to setprotected CPQImageFormatMapping getCpqCsticValueImageFormatMapping()
public void setCpqCsticValueImageFormatMapping(CPQImageFormatMapping cpqCsticValueImageFormatMapping)
cpqCsticValueImageFormatMapping - the cpqCsticValueImageFormatMapping to setprotected ImagePopulator getImagePopulator()
public void setImagePopulator(ImagePopulator imagePopulator)
imagePopulator - the imagePopulator to setprotected FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
flexibleSearchService - the flexibleSearchService to setprotected Collection<ClassificationAttributeModel> findClassificationAttributesByCode(ClassificationSystemVersionModel systemVersion, String code)
protected Collection<ClassificationAttributeValueModel> findClassificationAttributeValuesByCodePrefix(ClassificationSystemVersionModel systemVersion, String code)
Copyright © 2017 SAP SE. All Rights Reserved.