Interface ConfigMock
- All Known Implementing Classes:
BaseRunTimeConfigMockImpl,ConfPipeMockImpl,CPQBandsawMockImpl,CPQHomeTheaterPocConfigMockImpl,CPQLaptopPocConfigMockImpl,CPQScrewdriverMockImpl,DigitalCameraMockImpl,HomeTheaterMockImpl,YSapSimplePocConfigMockImpl
public interface ConfigMock
Interface for Configuration Mocks. There should be one implementation per KB.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddProductAttributes(ConfigModel model, ProductModel productModel) Allows to add attributes from product to the configurator mock modelvoidcheckCstic(ConfigModel model, InstanceModel instance, CsticModel cstic) voidcheckInstance(ConfigModel model, InstanceModel instance) voidcheckModel(ConfigModel model) default booleanDeprecated, for removal: This API element is subject to removal in a future version.default booleanTells if a mock represents a changeable variantvoidsetConfigId(String nextConfigId) voidsetI18NService(CommonI18NService i18nService) voidshowDeltaPrices(boolean showDeltaPrices)
-
Method Details
-
createDefaultConfiguration
ConfigModel createDefaultConfiguration() -
checkModel
-
addProductAttributes
Allows to add attributes from product to the configurator mock model- Parameters:
model-productModel-
-
checkInstance
-
checkCstic
-
setConfigId
-
isChangeabeleVariant
Deprecated, for removal: This API element is subject to removal in a future version.since 22.05: useisChangeableVariant()insteadTells if a mock represents a changeable variant- Returns:
- true if and only if mock represents a variant which is changeable, i.e. does not fall back to the base product in case changes are done to its attributes
-
isChangeableVariant
default boolean isChangeableVariant()Tells if a mock represents a changeable variant- Returns:
- true if and only if mock represents a variant which is changeable, i.e. does not fall back to the base product in case changes are done to its attributes
-
setI18NService
-
showDeltaPrices
void showDeltaPrices(boolean showDeltaPrices)
-
isChangeableVariant()instead