Class AbstractPackagePageController

Direct Known Subclasses:
DealDetailsPageController, PackageDetailsPageController, PackageListingPageController

public abstract class AbstractPackagePageController extends AbstractAccommodationPageController
Abstract controller for Package related pages
  • Constructor Details

    • AbstractPackagePageController

      public AbstractPackagePageController()
  • Method Details

    • populateFareSearchResponseInModel

      protected void populateFareSearchResponseInModel(FareSelectionData fareSearchResponse, org.springframework.ui.Model model)
    • countJourneyOptions

      protected int countJourneyOptions(FareSelectionData fareSelectionData, int referenceNumber)
    • prepareFareSearchRequestData

      protected FareSearchRequestData prepareFareSearchRequestData(FareFinderForm fareFinderForm, javax.servlet.http.HttpServletRequest request)
      Method handles the preparation of a FareSearchRequestData object using the FareFinderForm.
      Parameters:
      fareFinderForm -
      Returns:
    • createSearchProcessingInfo

      protected SearchProcessingInfoData createSearchProcessingInfo(javax.servlet.http.HttpServletRequest request)
    • createOriginDestinationInfos

      protected List<OriginDestinationInfoData> createOriginDestinationInfos(FareFinderForm fareFinderForm)
    • createTravelPreferences

      protected TravelPreferencesData createTravelPreferences(FareFinderForm fareFinderForm)
    • createTransportOfferingPreferences

      protected TransportOfferingPreferencesData createTransportOfferingPreferences()
    • createPassengerTypeQuantityData

      protected List<PassengerTypeQuantityData> createPassengerTypeQuantityData(String numberOfRoomsString, List<RoomStayCandidateData> roomStayCandidates) throws NumberFormatException
      Creates the passenger type quantity data.
      Parameters:
      numberOfRoomsString - the accommodation finder form
      roomStayCandidates - roomStayCandidates
      Returns:
      the list
      Throws:
      NumberFormatException
    • clonePassengerTypeQuantityData

      protected PassengerTypeQuantityData clonePassengerTypeQuantityData(PassengerTypeQuantityData gc)
      Clone passenger type quantity data.
      Parameters:
      gc - the gc
      Returns:
      the passenger type quantity data
    • getLocationName

      protected String getLocationName(String locationCode, String locationType)
      Gets the location name.
      Parameters:
      locationCode - the location code
      locationType - the location type
      Returns:
      the location name
    • sortFareSelectionData

      protected void sortFareSelectionData(FareSelectionData fareSelectionData, String displayOrder)
      Method to sort the FareSelectionData based on the displayOrder. If displayOrder is null, empty or not a valid FareSelectionDisplayOrder enum, the default sorting by departureDate is applied.
      Parameters:
      fareSelectionData - as the FareSelectionData to be sorted
      displayOrder - as the String corresponding to a sortingStrategy