All Implemented Interfaces:
CheckoutStepController

@Controller @RequestMapping("/checkout/multi/summary") public class SummaryCheckoutStepController extends AbstractCheckoutStepController
  • Constructor Details

    • SummaryCheckoutStepController

      public SummaryCheckoutStepController()
  • Method Details

    • enterStep

      @RequestMapping(value="/view", method=GET) public String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException, CommerceCartModificationException
      Description copied from interface: CheckoutStepController
      Swapping the parameter order might break the validation aspect from working.
      Returns:
      returns the result for entering the checkout step
      Throws:
      CMSItemNotFoundException
      CommerceCartModificationException
    • getNumberRange

      protected List<String> getNumberRange(int startNumber, int endNumber)
      Need to move out of controller utility method for Replenishment
    • placeOrder

      @PostMapping("/placeOrder") public String placeOrder(@ModelAttribute("placeOrderForm") PlaceOrderForm placeOrderForm, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException, InvalidCartException, CommerceCartModificationException
      Throws:
      CMSItemNotFoundException
      InvalidCartException
      CommerceCartModificationException
    • validateOrderForm

      protected boolean validateOrderForm(PlaceOrderForm placeOrderForm, org.springframework.ui.Model model)
      Validates the order form before to filter out invalid order states
      Parameters:
      placeOrderForm - The spring form of the order being submitted
      model - A spring Model
      Returns:
      True if the order form is invalid and false if everything is valid.
    • getB2BCheckoutFacade

      protected CheckoutFacade getB2BCheckoutFacade()
    • redirectToOrderConfirmationPage

      protected String redirectToOrderConfirmationPage(PlaceOrderData placeOrderData, AbstractOrderData orderData)
    • back

      @RequestMapping(value="/back", method=GET) public String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating back
    • next

      @RequestMapping(value="/next", method=GET) public String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating next
    • getCheckoutStep

      protected CheckoutStep getCheckoutStep()
    • initBinder

      @InitBinder protected void initBinder(org.springframework.web.bind.ServletRequestDataBinder binder)