Class ConfigureProductController


@Controller @RequestMapping public class ConfigureProductController extends AbstractProductConfigController
Default Controller for the dynamic product configuration content page.
See Also:
  • Constructor Details

    • ConfigureProductController

      public ConfigureProductController()
  • Method Details

    • configureProductGET

      @RequestMapping(value="/**/{productCode:.*}/configuratorPage/CPQCONFIGURATOR", method=GET) public String configureProductGET(@PathVariable("productCode") String productCodeEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws BusinessException
      Throws:
      BusinessException
    • configureProductPOST

      @RequestMapping(value="/**/{productCode:.*}/configuratorPage/CPQCONFIGURATOR", method=POST) public String configureProductPOST(@PathVariable("productCode") String productCodeEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws BusinessException
      Throws:
      BusinessException
    • configureProduct

      protected String configureProduct(String productCodeEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws BusinessException
      Renders the dynamic product configuration content page for the given product. In case a configuration session already exists for this product in the user session, it will be restored. Otherwise a new session is initiated, so that the runtime configuration is populated with the default values.
      Parameters:
      productCodeEncoded - coded of the configurable product
      model - view model
      request - HTTP-Request
      redirectAttributes - redirect attributes
      Returns:
      view name
      Throws:
      BusinessException
    • hasProductVariantApplied

      protected boolean hasProductVariantApplied(String productCode, ConfigurationData configData)
    • populateConfigurationModel

      protected ConfigurationData populateConfigurationModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, String productCode) throws BusinessException
      Throws:
      BusinessException
    • getQuantity

      protected long getQuantity(javax.servlet.http.HttpServletRequest request)