Class SummaryCheckoutStepController

    • Constructor Detail

      • SummaryCheckoutStepController

        public SummaryCheckoutStepController()
    • Method Detail

      • enterStep

        @RequestMapping(value="/view",
                        method=GET)
        public java.lang.String enterStep​(org.springframework.ui.Model model,
                                          org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                   throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        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:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • placeOrder

        @RequestMapping("/placeOrder")
        public java.lang.String placeOrder​(@ModelAttribute("placeOrderForm")
                                           PlaceOrderForm placeOrderForm,
                                           org.springframework.ui.Model model,
                                           org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                    throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException,
                                           de.hybris.platform.order.InvalidCartException,
                                           de.hybris.platform.commerceservices.order.CommerceCartModificationException
        Place order form.
        Parameters:
        placeOrderForm -
        model -
        request -
        redirectModel -
        Returns:
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        de.hybris.platform.order.InvalidCartException
        de.hybris.platform.commerceservices.order.CommerceCartModificationException
      • authorizePayment

        protected boolean authorizePayment​(PlaceOrderForm placeOrderForm)
      • 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.
      • back

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

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

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)
      • getCheckoutStep

        protected CheckoutStep getCheckoutStep()