Class BookingDetailsPageController


@Controller @RequestMapping("/manage-booking") public class BookingDetailsPageController extends AbstractPageController
Controller class to handle Booking details page. This page can be accessed from MyProfilePage or BookingConfirmation page in which case the access url is "/manage-booking/**" and also from ManageMyBooking component, in which case the url is "/checkout/manage-booking/**"
  • Field Details

    • BOOKING_DETAILS_USER_VALIDATION_ERROR

      public static final String BOOKING_DETAILS_USER_VALIDATION_ERROR
      The constant BOOKING_DETAILS_USER_VALIDATION_ERROR.
      See Also:
  • Constructor Details

    • BookingDetailsPageController

      public BookingDetailsPageController()
  • Method Details

    • getManageBookingsPage

      @RequestMapping(value="/booking-details/{bookingReference}", method=GET) public String getManageBookingsPage(@PathVariable String bookingReference, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      This method enables to retrieve a booking using the booking reference number.
      Parameters:
      bookingReference - a string representing bookingReferenceNumber
      model - a Model Object
      redirectModel - a RedirectAttributes object
      Returns:
      a string for a redirected page.
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - the cms item not found exception
    • loginManageMyBooking

      @RequestMapping(value="/login", method=POST) public String loginManageMyBooking(AdditionalSecurityForm mmbForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      This method allows a traveller to login to bookingDetails page. Validates BookingReference and Last name, if success full retrieves booking and redirects to bookingDetails page, else redirects to home page with error message.
      Parameters:
      mmbForm - ManageMyBookingForm object.
      request - HttpServletRequest
      response - HttpServletResponse
      model - the model
      Returns:
      a string for a redirected page.
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - the cms item not found exception
    • getDisableCurrencySelector

      @ModelAttribute("disableCurrencySelector") public Boolean getDisableCurrencySelector()
      Gets disable currency selector.
      Returns:
      the disable currency selector
    • getSessionService

      public de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Overrides:
      getSessionService in class AbstractPageController
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Sets session service.
      Parameters:
      sessionService - the session service
    • getGuidCookieStrategy

      protected GUIDCookieStrategy getGuidCookieStrategy()
      Gets guid cookie strategy.
      Returns:
      the guid cookie strategy
    • setGuidCookieStrategy

      public void setGuidCookieStrategy(GUIDCookieStrategy guidCookieStrategy)
      Sets guid cookie strategy.
      Parameters:
      guidCookieStrategy - the guid cookie strategy
    • getCustomerFacade

      protected de.hybris.platform.commercefacades.customer.CustomerFacade getCustomerFacade()
      Overrides:
      getCustomerFacade in class AbstractPageController
    • setCustomerFacade

      public void setCustomerFacade(de.hybris.platform.commercefacades.customer.CustomerFacade customerFacade)
      Sets customer facade.
      Parameters:
      customerFacade - the customer facade
    • getMessageSource

      protected org.springframework.context.MessageSource getMessageSource()
      Overrides:
      getMessageSource in class AbstractPageController
    • setMessageSource

      public void setMessageSource(org.springframework.context.MessageSource messageSource)
      Sets message source.
      Parameters:
      messageSource - the message source
    • getI18nService

      protected de.hybris.platform.servicelayer.i18n.I18NService getI18nService()
      Overrides:
      getI18nService in class AbstractPageController
    • setI18nService

      public void setI18nService(de.hybris.platform.servicelayer.i18n.I18NService i18nService)
      Sets i 18 n service.
      Parameters:
      i18nService - the 18 n service