java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractRatePlansHandler
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.RatePlansHandler
All Implemented Interfaces:
AccommodationDetailsHandler

public class RatePlansHandler extends AbstractRatePlansHandler
This handler populates the AccommodationAvailabilityResponseData with the list of RatePlanData***
  • Constructor Details

    • RatePlansHandler

      public RatePlansHandler()
  • Method Details

    • handle

      public void handle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData)
      Description copied from interface: AccommodationDetailsHandler
      Handle method.
      Parameters:
      availabilityRequestData - the availability request data
      accommodationAvailabilityResponseData - the accommodation availability response data
    • filterRatePlansByGuestOccupancies

      protected void filterRatePlansByGuestOccupancies(List<RatePlanModel> filteredRatePlans, Collection<RatePlanModel> ratePlans, AccommodationAvailabilityRequestData availabilityRequestData)
      Filter rate plans by guest occupancies object.
      Parameters:
      filteredRatePlans - the filtered rate plans
      ratePlans - the rate plans
      availabilityRequestData - the availability request data
    • getPassengerTypeQuantityMap

      protected Map<String,Integer> getPassengerTypeQuantityMap(RoomStayCandidateData roomStayCandidateData)
      Returns a map for the specified roomStayCandidateData, where the key is the Code of the passenger type and the value is its quantity.
      Parameters:
      roomStayCandidateData - the room stay candidate data
      Returns:
      a map where the key is the Code of the passenger type and the value is its quantity.
    • checkGuestOccupanciesAgainstRoomStayCandidates

      protected void checkGuestOccupanciesAgainstRoomStayCandidates(List<RatePlanModel> filteredRatePlans, List<Map<String,Integer>> roomStayCandidatesMaps, RatePlanModel ratePlan)
      Check guest occupancies against room stay candidates.
      Parameters:
      filteredRatePlans - the filtered rate plans
      roomStayCandidatesMaps - the room stay candidates maps
      ratePlan - the rate plan