Class SapServiceOrderCheckoutStepController

    • Constructor Detail

      • SapServiceOrderCheckoutStepController

        public SapServiceOrderCheckoutStepController()
    • Method Detail

      • enterStep

        @RequestMapping(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,
                                          de.hybris.platform.commerceservices.order.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:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        de.hybris.platform.commerceservices.order.CommerceCartModificationException
      • getServiceDetailsForm

        protected ServiceDetailsForm getServiceDetailsForm()
        Populates service details and returns it
        Returns:
        serviceDetailsForm
      • populateServiceDetailsForm

        protected void populateServiceDetailsForm​(ServiceDetailsForm form,
                                                  java.util.Date serviceDate)
        Populate form with service date
        Parameters:
        form - service details form
        serviceDate - service date
      • choose

        @RequestMapping(value="/choose",
                        method=POST)
        public java.lang.String choose​(@ModelAttribute
                                       ServiceDetailsForm serviceDetailsForm,
                                       org.springframework.validation.BindingResult bindingResult,
                                       org.springframework.ui.Model model)
                                throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException,
                                       de.hybris.platform.commerceservices.order.CommerceCartModificationException,
                                       java.text.ParseException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        de.hybris.platform.commerceservices.order.CommerceCartModificationException
        java.text.ParseException
      • 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
      • getCheckoutStep

        protected CheckoutStep getCheckoutStep()