Class CartConfigureProductController


  • @Controller
    @RequestMapping
    public class CartConfigureProductController
    extends AbstractProductConfigController
    Controller for Cart-Configuration integration
    • Constructor Detail

      • CartConfigureProductController

        public CartConfigureProductController()
    • Method Detail

      • configureCartEntry

        @RequestMapping("cart/{entryNumber}/configuration/CPQCONFIGURATOR")
        public java.lang.String configureCartEntry​(@PathVariable("entryNumber")
                                                   int entryNumber,
                                                   org.springframework.ui.Model model,
                                                   javax.servlet.http.HttpServletRequest request)
                                            throws CommerceCartModificationException
        Prepares a configuration session for the given cart item. This includes re-creation of the configuration sessions, in case it was already releases, as well as restoring of the UI-State.
        Parameters:
        entryNumber - of the configurable cart item
        model - view model
        request - http request
        Returns:
        view name
        Throws:
        CommerceCartModificationException
      • configureCartEntryOnExistingDraft

        @RequestMapping("cart/{entryNumber}/configureOnDraft/CPQCONFIGURATOR")
        public java.lang.String configureCartEntryOnExistingDraft​(@PathVariable("entryNumber")
                                                                  int entryNumber,
                                                                  org.springframework.ui.Model model,
                                                                  javax.servlet.http.HttpServletRequest request)
                                                           throws CommerceCartModificationException
        Prepares a configuration session for the given cart item in case a configuration draft already exists. Example: User triggered configuration from cart, navigated to vaariant display and afterwards returns to the configuration page
        Parameters:
        entryNumber - Entry number of the configurable cart item
        model - View model
        request - Http request
        Returns:
        view name
        Throws:
        CommerceCartModificationException