Class AccommodationExtrasPageController


@Controller @RequestMapping({"/extras","/manage-booking/extras"}) public class AccommodationExtrasPageController extends TravelAbstractPageController
Controller for Accommodation Extras page
  • Constructor Details

    • AccommodationExtrasPageController

      public AccommodationExtrasPageController()
  • Method Details

    • getAccommodationExtrasPage

      @RequestMapping(method=GET) public String getAccommodationExtrasPage(@RequestParam(value="roomStay",required=false) Integer roomStayRefNumberToUpdate, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • determineNextUrl

      protected String determineNextUrl()
      This method determines the next url of checkout flow. If the context is purchase flow, then the next url is "/extras/next" else if the context is amendment then the next url is "/manage-booking/extras/next".
      Returns:
      next url
    • nextPage

      @RequestMapping(value="/next", method=GET) public String nextPage()
      Redirects user to the next checkout page which is guest details (or checkout login)
      Returns:
      next page
    • createAccommodationRoomPreferenceMap

      protected Map<Integer,List<RoomPreferenceData>> createAccommodationRoomPreferenceMap(AccommodationReservationData accommodationReservationData)