Class SimpleConfigurationVariantUtilImpl

java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.SimpleConfigurationVariantUtilImpl
All Implemented Interfaces:
ConfigurationVariantUtil

public class SimpleConfigurationVariantUtilImpl extends Object implements ConfigurationVariantUtil
Default implementation of the ConfigurationVariantUtil.
  • Constructor Details

    • SimpleConfigurationVariantUtilImpl

      public SimpleConfigurationVariantUtilImpl()
  • Method Details

    • setChangeableVariantBaseProducts

      public void setChangeableVariantBaseProducts(Set<String> changeableVariantBaseProducts)
      Parameters:
      changeableVariantBaseProducts - the changeableVariantBaseProducts to set
    • getChangeableVariantBaseProducts

      protected Set<String> getChangeableVariantBaseProducts()
    • isCPQBaseProduct

      public boolean isCPQBaseProduct(ProductModel productModel)
      Description copied from interface: ConfigurationVariantUtil
      Determines whether a product acts as a base product for variant products.
      Specified by:
      isCPQBaseProduct in interface ConfigurationVariantUtil
      Parameters:
      productModel - productmodel which is tested for variants
      Returns:
      true if productmodel has variants
    • isCPQVariantProduct

      public boolean isCPQVariantProduct(ProductModel productModel)
      Description copied from interface: ConfigurationVariantUtil
      Checks whether a product is a Variant
      Specified by:
      isCPQVariantProduct in interface ConfigurationVariantUtil
      Parameters:
      productModel - productmodel which is tested for being a variant
      Returns:
      true if productmodel represents a variant
    • getBaseProductCode

      public String getBaseProductCode(ProductModel variantProductModel)
      Description copied from interface: ConfigurationVariantUtil
      returns the base product code for a CPQ variant. call ConfigurationVariantUtil.isCPQVariantProduct(ProductModel) to check whether the given product is a CPQVaraint at all!
      Specified by:
      getBaseProductCode in interface ConfigurationVariantUtil
      Parameters:
      variantProductModel - variant
      Returns:
      code of the base product of this variant
    • isCPQChangeableVariantProduct

      public boolean isCPQChangeableVariantProduct(ProductModel productModel)
      Description copied from interface: ConfigurationVariantUtil
      Checks whether a product is a Changeable Variant
      Specified by:
      isCPQChangeableVariantProduct in interface ConfigurationVariantUtil
      Parameters:
      productModel - productmodel which is tested for being a changeable variant
      Returns:
      true if productmodel represents a changeable variant
    • isCPQNotChangeableVariantProduct

      public boolean isCPQNotChangeableVariantProduct(ProductModel productModel)
      Description copied from interface: ConfigurationVariantUtil
      Checks whether a product is a Not Changeable Variant
      Specified by:
      isCPQNotChangeableVariantProduct in interface ConfigurationVariantUtil
      Parameters:
      productModel - productmodel which is tested for being a not changeable variant
      Returns:
      true if productmodel represents a not changeable variant
    • checkVariantAndChangeable

      protected boolean checkVariantAndChangeable(ProductModel productModel, boolean shouldBeChangeable)