Class AcceleratorCheckoutLoginController

Direct Known Subclasses:
TravelCheckoutLoginPageController

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

  • Constructor Details

    • AcceleratorCheckoutLoginController

      public AcceleratorCheckoutLoginController()
  • Method Details

    • 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(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
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • doAnonymousCheckout

      @RequestMapping(value="/guest", method=POST) public String doAnonymousCheckout(GuestForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • checkoutRegister

      @RequestMapping(value="/register", method=GET) public String checkoutRegister(@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
    • doAnonymousCheckout

      @RequestMapping(value="/guest", method=GET) public String doAnonymousCheckout(@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
    • 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
    • hasItemsInCart

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

      protected GuestValidator getGuestValidator()
    • getCheckoutFlowFacade

      protected de.hybris.platform.acceleratorfacades.flow.CheckoutFlowFacade getCheckoutFlowFacade()
    • getGuidCookieStrategy

      protected GUIDCookieStrategy getGuidCookieStrategy()
      Overrides:
      getGuidCookieStrategy in class AbstractRegisterPageController
      Returns:
      GUIDCookieStrategy
    • getAuthenticationManager

      protected org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()