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) Deprecated.will be removed from interface, as it is internal.voidcheckInstance(ConfigModel model, InstanceModel instance) Deprecated.method will be removed from interface, as it is internal.voidcheckModel(ConfigModel model) simulates an update call for the given model, applying the mock dynamicsdefault voidEnriches configuration model, applying the mock dynamicsdefault booleanDeprecated, for removal: This API element is subject to removal in a future version.since 22.05: useisChangeableVariant()insteaddefault booleanTells if a mock represents a changeable variantdefault voidsetConfigId(String nextConfigId) Deprecated.ConfigsMocks have to be immutable/stateless since 2211.voidsetI18NService(CommonI18NService i18nService) Deprecated.will be removed from interface, as it is internal.default voidshowDeltaPrices(boolean showDeltaPrices) Deprecated, for removal: This API element is subject to removal in a future version.ConfigsMocks have to be immutable/stateless since 2211.
-
Method Details
-
createDefaultConfiguration
ConfigModel createDefaultConfiguration()- Returns:
- the default configuration
-
checkModel
simulates an update call for the given model, applying the mock dynamics- Parameters:
model- ConfigModel
-
addProductAttributes
Allows to add attributes from product to the configurator mock model- Parameters:
model-productModel-
-
checkInstance
Deprecated.method will be removed from interface, as it is internal. -
checkCstic
@Deprecated(since="2211") void checkCstic(ConfigModel model, InstanceModel instance, CsticModel cstic) Deprecated.will be removed from interface, as it is internal. -
setConfigId
Deprecated.ConfigsMocks have to be immutable/stateless since 2211. extract config id from the runtime configurationConfigModelinstead- Parameters:
nextConfigId-
-
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
Deprecated.will be removed from interface, as it is internal. -
showDeltaPrices
Deprecated, for removal: This API element is subject to removal in a future version.ConfigsMocks have to be immutable/stateless since 2211. -
enrichConfigurationModel
Enriches configuration model, applying the mock dynamics- Parameters:
model- ConfigModel
-