Class TravelManageBookingController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.shoppingcommons.controllers.misc.TravelManageBookingController
The type Travel manage booking controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAccommodationRoom(String orderCode, AccommodationAvailabilityForm accommodationAvailabilityForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model) Proceeds with cancellation of the accommodation order and places a new (amended) orderbeginCancelAccommodationOrder(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String bookingReference) Starts the process of cancellation of the accommodation orderbeginCancelTransportOrder(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String bookingReference) Starts the process of cancellation of the transport orderprotected StringbuildPackageDetailsQuery(AccommodationAvailabilityForm accommodationAvailabilityForm) cancelAccommodationOrder(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String bookingReference) Proceeds with cancellation of the accommodation order and places a new (amended) ordercancelTransportOrder(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String bookingReference) Proceeds with cancellation of the transport order and places a new (amended) orderprotected StringgetNumberOfRoomsQuery(AccommodationAvailabilityForm accommodationAvailabilityForm) Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Constructor Details
-
TravelManageBookingController
public TravelManageBookingController()
-
-
Method Details
-
beginCancelTransportOrder
@RequestMapping(value="/manage-booking/cancel-transport-order-request/{bookingReference}", method=GET, produces="application/json") public String beginCancelTransportOrder(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, @PathVariable String bookingReference) Starts the process of cancellation of the transport order- Parameters:
model-redirectModel-bookingReference-- Returns:
- transport cancellation modal
-
cancelTransportOrder
@RequestMapping("/manage-booking/cancel-transport-order/{bookingReference}") public String cancelTransportOrder(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, @PathVariable String bookingReference) Proceeds with cancellation of the transport order and places a new (amended) order- Parameters:
redirectModel-bookingReference-- Returns:
- the redirect to booking details page with result of cancellation process
-
beginCancelAccommodationOrder
@RequestMapping(value="/manage-booking/cancel-accommodation-order-request/{bookingReference}", method=GET, produces="application/json") public String beginCancelAccommodationOrder(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, @PathVariable String bookingReference) Starts the process of cancellation of the accommodation order- Parameters:
model-redirectModel-bookingReference-- Returns:
- accommodation cancellation modal
-
cancelAccommodationOrder
@RequestMapping("/manage-booking/cancel-accommodation-order/{bookingReference}") public String cancelAccommodationOrder(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, @PathVariable String bookingReference) Proceeds with cancellation of the accommodation order and places a new (amended) order- Parameters:
redirectModel-bookingReference-- Returns:
- the redirect to booking details page with result of cancellation process
-
addAccommodationRoom
@RequestMapping(value="/manage-booking/add-room-package/{orderCode}", method=POST) public String addAccommodationRoom(@PathVariable String orderCode, @ModelAttribute("accommodationAvailabilityForm") AccommodationAvailabilityForm accommodationAvailabilityForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model) Proceeds with cancellation of the accommodation order and places a new (amended) order- Parameters:
redirectModel-- Returns:
- the redirect to booking details page with result of cancellation process
-
buildPackageDetailsQuery
protected String buildPackageDetailsQuery(AccommodationAvailabilityForm accommodationAvailabilityForm) -
getNumberOfRoomsQuery
-