Class ConfigureProductController

    • Constructor Detail

      • ConfigureProductController

        public ConfigureProductController()
    • Method Detail

      • configureProduct

        @RequestMapping(value="/**/{productCode:.*}/configuratorPage/CPQCONFIGURATOR",
                        method={GET,POST})
        public java.lang.String configureProduct​(@PathVariable("productCode")
                                                 java.lang.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​(java.lang.String productCode,
                                                   ConfigurationData configData)
      • populateConfigurationModel

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

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