Class ProductCsticAndValueParameterProviderMockImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.mock.provider.impl.ProductCsticAndValueParameterProviderMockImpl
-
- All Implemented Interfaces:
ProductCsticAndValueParameterProvider
public class ProductCsticAndValueParameterProviderMockImpl extends java.lang.Object implements ProductCsticAndValueParameterProvider
Class to provide based on the product code, all relevant Cstic/CsticValue pairs, for the backoffice rule editor.
-
-
Constructor Summary
Constructors Constructor Description ProductCsticAndValueParameterProviderMockImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMockFactorygetConfigMockFactory()protected ConfigModelgetConfigModel(java.lang.String productCode)protected CsticParameterWithValuesgetCsticParameters(CsticModel cstic)protected java.util.List<ValueParameter>getValuesForCstic(java.util.List<CsticValueModel> csticValues)java.util.Map<java.lang.String,CsticParameterWithValues>retrieveProductCsticsAndValuesParameters(java.lang.String productCode)Retrieves characteristic language independent and language dependent names as well as characteristic values from knowledgebase.voidsetConfigMockFactory(ConfigMockFactory configMockFactory)
-
-
-
Method Detail
-
retrieveProductCsticsAndValuesParameters
public java.util.Map<java.lang.String,CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(java.lang.String productCode)
Description copied from interface:ProductCsticAndValueParameterProviderRetrieves characteristic language independent and language dependent names as well as characteristic values from knowledgebase.- Specified by:
retrieveProductCsticsAndValuesParametersin interfaceProductCsticAndValueParameterProvider- Parameters:
productCode- product code for which the data is retrieved- Returns:
- Map with characteristic language independent name as a key and CsticParameterWithValues as a value
-
getCsticParameters
protected CsticParameterWithValues getCsticParameters(CsticModel cstic)
-
getValuesForCstic
protected java.util.List<ValueParameter> getValuesForCstic(java.util.List<CsticValueModel> csticValues)
-
getConfigModel
protected ConfigModel getConfigModel(java.lang.String productCode)
-
getConfigMockFactory
public ConfigMockFactory getConfigMockFactory()
- Returns:
- the configMockFactory
-
setConfigMockFactory
public void setConfigMockFactory(ConfigMockFactory configMockFactory)
- Parameters:
configMockFactory- the runTimeConfigMockFactory to set
-
-