Interface ConfigurationVariantUtil
- All Known Implementing Classes:
SimpleConfigurationVariantUtilImpl
public interface ConfigurationVariantUtil
Utility service for variants of configurable products
-
Method Summary
Modifier and TypeMethodDescriptiongetBaseProductCode(ProductModel variantProductModel) returns the base product code for a CPQ variant.booleanisCPQBaseProduct(ProductModel productModel) Determines whether a product acts as a base product for variant products.booleanisCPQChangeableVariantProduct(ProductModel productModel) Checks whether a product is a Changeable VariantbooleanisCPQNotChangeableVariantProduct(ProductModel productModel) Checks whether a product is a Not Changeable VariantbooleanisCPQVariantProduct(ProductModel productModel) Checks whether a product is a Variant
-
Method Details
-
isCPQBaseProduct
Determines whether a product acts as a base product for variant products.- Parameters:
productModel- productmodel which is tested for variants- Returns:
- true if productmodel has variants
-
isCPQVariantProduct
Checks whether a product is a Variant- Parameters:
productModel- productmodel which is tested for being a variant- Returns:
- true if productmodel represents a variant
-
getBaseProductCode
returns the base product code for a CPQ variant. callisCPQVariantProduct(ProductModel)to check whether the given product is a CPQVaraint at all!- Parameters:
variantProductModel- variant- Returns:
- code of the base product of this variant
-
isCPQChangeableVariantProduct
Checks whether a product is a Changeable Variant- Parameters:
productModel- productmodel which is tested for being a changeable variant- Returns:
- true if productmodel represents a changeable variant
-
isCPQNotChangeableVariantProduct
Checks whether a product is a Not Changeable Variant- Parameters:
productModel- productmodel which is tested for being a not changeable variant- Returns:
- true if productmodel represents a not changeable variant
-