Interface ConfigurationVariantUtil

All Known Implementing Classes:
SimpleConfigurationVariantUtilImpl

public interface ConfigurationVariantUtil
Utility service for variants of configurable products
  • Method Details

    • isCPQBaseProduct

      boolean isCPQBaseProduct(ProductModel productModel)
      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

      boolean isCPQVariantProduct(ProductModel productModel)
      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

      String getBaseProductCode(ProductModel variantProductModel)
      returns the base product code for a CPQ variant. call isCPQVariantProduct(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

      boolean isCPQChangeableVariantProduct(ProductModel productModel)
      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

      boolean isCPQNotChangeableVariantProduct(ProductModel productModel)
      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