Class CPQProductBasicPopulator<SOURCE extends ProductModel,​TARGET extends ProductData>

  • Type Parameters:
    SOURCE - product model
    TARGET - product DTO
    All Implemented Interfaces:
    Populator<SOURCE,​TARGET>

    public class CPQProductBasicPopulator<SOURCE extends ProductModel,​TARGET extends ProductData>
    extends AbstractProductPopulator<SOURCE,​TARGET>
    For CPQ, variant base products are purchasable (if approved). This is the only attribute that is touched here.
    • Constructor Detail

      • CPQProductBasicPopulator

        public CPQProductBasicPopulator()
    • Method Detail

      • populate

        public void populate​(SOURCE productModel,
                             TARGET productData)
        Description copied from interface: Populator
        Populate the target instance with values from the source instance.
        Parameters:
        productModel - the source object
        productData - the target to fill
      • populatePurchasable

        protected void populatePurchasable​(SOURCE productModel,
                                           TARGET productData)
      • isCPQBaseProduct

        protected boolean isCPQBaseProduct​(ProductModel productModel)
      • setConfigurationVariantUtil

        public void setConfigurationVariantUtil​(ConfigurationVariantUtil configurationVariantUtil)
        Parameters:
        configurationVariantUtil -
      • isApproved

        protected boolean isApproved​(SOURCE productModel)