Class TransportManageBookingController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.traveladdon.controllers.misc.TransportManageBookingController
The type Transport 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 TypeMethodDescriptionamendAncillaries(String orderCode) Starts the process of amending ancillaries by creating cart from order and attaching it to the sessionbeginCancelTraveller(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String orderCode, String travellerUid) Starts the process of traveller cancellationprotected StringcancelTraveller(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String travellerUid, String orderCode) Proceeds with cancellation of traveller and places a new (amended) orderprotected StringgetCancellTravellerError(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, String orderCode) Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
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
-
buildFormattedTravellerName
-