public class CsticTypeMapperImpl extends Object implements CsticTypeMapper
CsticTypeMapper.READ_ONLY_AUTHOR| Constructor and Description |
|---|
CsticTypeMapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkReadonly(CsticValueModel csticValue,
boolean isDebugEnabled) |
protected boolean |
containsHTML(String longText,
boolean isDebugEnabled) |
protected CsticValueData |
createDomainValue(CsticModel csticModel,
CsticValueModel csticValueModel,
ClassificationSystemCPQAttributesContainer hybrisNames,
boolean isDebugEnabled,
boolean isDebugEnabledNameProvider) |
protected List<CsticValueData> |
createDomainValues(CsticModel model,
ClassificationSystemCPQAttributesContainer hybrisNames,
boolean isDebugEnabled) |
protected String |
emptyIfNull(String value) |
String |
generateUniqueKey(CsticModel model,
CsticValueModel value,
String prefix)
Generates a key that identifies this characteristic value uniquely within this configuration.
|
String |
generateUniqueKey(CsticModel model,
String prefix)
Generates a key that identifies this characteristic uniquely within this configuration.
|
protected ClassificationSystemCPQAttributesProvider |
getNameProvider() |
protected ConfigPricing |
getPricingFactory() |
protected UniqueUIKeyGenerator |
getUiKeyGenerator() |
protected UiTypeFinder |
getUiTypeFinder() |
protected ValueFormatTranslator |
getValueFormatTranslator() |
protected String |
getValueForUiTypeWithAdditionalValue(CsticData data,
CsticModel model,
String value) |
protected String |
getValueFromCstcData(CsticData data,
boolean isDebugEnabled) |
protected void |
handlePriceData(CsticModel model,
CsticData data,
List<CsticValueData> domainValues)
Adds zero prices with currency to the domain-values if the cstic is price relevant.
|
protected void |
handleRetraction(CsticData data,
CsticModel model,
boolean isDebugEnabled)
Handles the retraction of a cstic which means that all user inputs to this cstic are discarded.
|
protected String |
identifyPriceRelevanceAndCurrency(CsticModel csticModel,
CsticData csticData)
Checks the CsticModel for price relevance (i.e.
|
protected boolean |
isUiTypeDrownDownAndNullValue(UiType uiType,
String value) |
protected boolean |
isUiTypeMultiselectionValue(UiType uiType) |
protected boolean |
isUiTypeWithAdditionalValue(UiType uiType) |
CsticData |
mapCsticModelToData(CsticModel model,
String prefix)
Deprecated.
Replaced by mapCsticModelToData(final CsticModel model, final String prefix, final Map
|
CsticData |
mapCsticModelToData(CsticModel model,
String prefix,
Map<String,ClassificationSystemCPQAttributesContainer> nameMap)
Maps a single characteristic.
|
protected void |
mapNumericSpecifics(CsticModel model,
CsticData data) |
void |
setNameProvider(ClassificationSystemCPQAttributesProvider nameProvider) |
void |
setPricingFactory(ConfigPricing pricingFactory) |
void |
setUiKeyGenerator(UniqueUIKeyGenerator uiKeyGenerator) |
void |
setUiTypeFinder(UiTypeFinder uiTypeFinder) |
void |
setValueFormatTranslator(ValueFormatTranslator valueFormatTranslator) |
void |
updateCsticModelValuesFromData(CsticData data,
CsticModel model)
Updates a single characteristic.
|
@Deprecated public CsticData mapCsticModelToData(CsticModel model, String prefix)
CsticTypeMappermapCsticModelToData in interface CsticTypeMappermodel - source - characteristic Modelprefix - name of the group, this characteristic belongs topublic CsticData mapCsticModelToData(CsticModel model, String prefix, Map<String,ClassificationSystemCPQAttributesContainer> nameMap)
CsticTypeMappermapCsticModelToData in interface CsticTypeMappermodel - source - characteristic Modelprefix - name of the group, this characteristic belongs tonameMap - cache for hybris classification system accessprotected void mapNumericSpecifics(CsticModel model, CsticData data)
protected List<CsticValueData> createDomainValues(CsticModel model, ClassificationSystemCPQAttributesContainer hybrisNames, boolean isDebugEnabled)
protected void handlePriceData(CsticModel model, CsticData data, List<CsticValueData> domainValues)
model - data - domainValues - protected CsticValueData createDomainValue(CsticModel csticModel, CsticValueModel csticValueModel, ClassificationSystemCPQAttributesContainer hybrisNames, boolean isDebugEnabled, boolean isDebugEnabledNameProvider)
protected boolean checkReadonly(CsticValueModel csticValue, boolean isDebugEnabled)
public void updateCsticModelValuesFromData(CsticData data, CsticModel model)
CsticTypeMapperupdateCsticModelValuesFromData in interface CsticTypeMapperdata - source - characteristic DTOmodel - target - characteristic Modelprotected String getValueForUiTypeWithAdditionalValue(CsticData data, CsticModel model, String value)
protected boolean isUiTypeDrownDownAndNullValue(UiType uiType, String value)
protected boolean isUiTypeWithAdditionalValue(UiType uiType)
protected boolean isUiTypeMultiselectionValue(UiType uiType)
protected void handleRetraction(CsticData data, CsticModel model, boolean isDebugEnabled)
data - model - public String generateUniqueKey(CsticModel model, CsticValueModel value, String prefix)
CsticTypeMappergenerateUniqueKey in interface CsticTypeMappermodel - characteristic modelvalue - characteristic value modelpublic String generateUniqueKey(CsticModel model, String prefix)
CsticTypeMappergenerateUniqueKey in interface CsticTypeMappermodel - characteristic modelprotected boolean containsHTML(String longText, boolean isDebugEnabled)
protected String identifyPriceRelevanceAndCurrency(CsticModel csticModel, CsticData csticData)
csticModel - model to be checkedcsticData - DTO to be modifiedpublic void setUiTypeFinder(UiTypeFinder uiTypeFinder)
uiTypeFinder - protected UiTypeFinder getUiTypeFinder()
public void setPricingFactory(ConfigPricing pricingFactory)
pricingFactory - protected ConfigPricing getPricingFactory()
public void setValueFormatTranslator(ValueFormatTranslator valueFormatTranslator)
valueFormatTranslator - the valueFormatTranslator to setprotected ValueFormatTranslator getValueFormatTranslator()
public void setNameProvider(ClassificationSystemCPQAttributesProvider nameProvider)
nameProvider - hybris characteristic and value name providerprotected ClassificationSystemCPQAttributesProvider getNameProvider()
public void setUiKeyGenerator(UniqueUIKeyGenerator uiKeyGenerator)
uiKeyGenerator - for generating uniqueKeysprotected UniqueUIKeyGenerator getUiKeyGenerator()
Copyright © 2017 SAP SE. All Rights Reserved.