Class AncillaryPageController


@Controller @RequestMapping({"/ancillary","/manage-booking/ancillary"}) public class AncillaryPageController extends AbstractCheckinStepController
Controller for Ancillary page
  • Constructor Details

    • AncillaryPageController

      public AncillaryPageController()
  • Method Details

    • getAncillaryPage

      @RequestMapping(method=GET) public String getAncillaryPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Parameters:
      model -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getAmendmentAncillaryPage

      @RequestMapping(value="/amendment", method=GET) public String getAmendmentAncillaryPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Parameters:
      model -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getUpgradeBundleOptionsPage

      @RequestMapping(value="/upgrade-bundle-options", method=GET, produces="application/json") public String getUpgradeBundleOptionsPage(org.springframework.ui.Model model)
      Parameters:
      model -
      Returns:
      String
    • isUpgradeAvailable

      protected boolean isUpgradeAvailable(List<PricedItineraryData> pricedItineraries)
    • getCheckinAncillaryPage

      @RequestMapping(value="/checkin", method=GET) public String getCheckinAncillaryPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Parameters:
      model -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getAncillaryPage

      protected String getAncillaryPage(org.springframework.ui.Model model, String ancillaryCmsPage) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getAccommodations

      @ResponseBody @RequestMapping(value="/accommodation-map", method={POST,GET}, produces="application/json") public SeatMapResponseData getAccommodations()
    • determineNextUrl

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

      @RequestMapping(value="/check-offer-groups-restriction", method=GET) @ResponseBody public CategoryRestrictionResponseData checkCategoryRestrictions(org.springframework.ui.Model model)
      Performs a validation on the TravelRestriction for each OfferGroup available.
      Parameters:
      model -
      Returns:
      the location of the JSON object used to render the error in the front-end
    • nextPage

      @RequestMapping(value="/next", method=GET) public String nextPage(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
      Redirects user to the next checkout page which is traveller details
      Parameters:
      redirectModel -
      Returns:
      traveller details page
    • getCheckinStep

      protected CheckinStep getCheckinStep()