Class TelcoCheckoutLoginController


@Controller @RequestMapping("/login/checkout") public class TelcoCheckoutLoginController extends AbstractLoginPageController
Checkout Login Controller. Handles login and register for the checkout flow.
  • Constructor Details

    • TelcoCheckoutLoginController

      public TelcoCheckoutLoginController()
  • Method Details

    • getCheckoutFacade

      protected de.hybris.platform.commercefacades.order.CheckoutFacade getCheckoutFacade()
    • getCheckoutUrl

      protected String getCheckoutUrl()
    • hasItemsInCart

      protected boolean hasItemsInCart()
      Checks if there are any items in the cart.
      Returns:
      returns true if items found in cart.
    • getView

      protected String getView()
      Specified by:
      getView in class AbstractRegisterPageController
    • getSuccessRedirect

      protected String getSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Specified by:
      getSuccessRedirect in class AbstractRegisterPageController
    • getCmsPage

      protected AbstractPageModel getCmsPage() throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Specified by:
      getCmsPage in class AbstractRegisterPageController
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • doCheckoutLogin

      @RequestMapping(method=GET) public String doCheckoutLogin(@RequestParam(value="error",defaultValue="false") boolean loginError, javax.servlet.http.HttpSession session, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • doCheckoutRegister

      @RequestMapping(value="/register", method=POST) public String doCheckoutRegister(@Valid @Valid RegisterForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Registration.
      Parameters:
      form -
      bindingResult -
      model -
      request -
      response -
      redirectModel -
      Returns:
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • initBinder

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