Class TransportManageBookingController

java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.traveladdon.controllers.misc.TransportManageBookingController

@Controller public class TransportManageBookingController extends AbstractController
The type Transport manage booking controller.
  • Constructor Details

    • TransportManageBookingController

      public TransportManageBookingController()
  • Method Details

    • amendAncillaries

      @RequestMapping(value="/manage-booking/{orderCode}/amend-ancillaries", method=GET) public String amendAncillaries(@PathVariable String orderCode) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Starts the process of amending ancillaries by creating cart from order and attaching it to the session
      Parameters:
      orderCode -
      Returns:
      ancillary page for amendments
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • beginCancelTraveller

      @RequestMapping(value="/manage-booking/cancel-traveller-request", method=GET) public String beginCancelTraveller(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, @ModelAttribute("orderCode") String orderCode, @ModelAttribute("travellerUid") String travellerUid) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Starts the process of traveller cancellation
      Parameters:
      model -
      redirectModel -
      orderCode -
      travellerUid -
      Returns:
      traveller cancellation modal
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • cancelTraveller

      @RequestMapping("/manage-booking/cancel-traveller") public String cancelTraveller(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, @ModelAttribute("travellerUid") String travellerUid, @ModelAttribute("orderCode") String orderCode)
      Proceeds with cancellation of traveller and places a new (amended) order
      Parameters:
      redirectModel -
      travellerUid -
      orderCode -
      Returns:
      the redirect to booking details page with result of cancellation process
    • getCancellTravellerError

      protected String getCancellTravellerError(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String orderCode)
    • buildFormattedTravellerName

      protected String buildFormattedTravellerName(PassengerInformationData info)