Class RatePlansHandler
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
This handler populates the
AccommodationAvailabilityResponseData with the list of RatePlanData***-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckGuestOccupanciesAgainstRoomStayCandidates(List<RatePlanModel> filteredRatePlans, List<Map<String, Integer>> roomStayCandidatesMaps, RatePlanModel ratePlan) Check guest occupancies against room stay candidates.protected voidfilterRatePlansByGuestOccupancies(List<RatePlanModel> filteredRatePlans, Collection<RatePlanModel> ratePlans, AccommodationAvailabilityRequestData availabilityRequestData) Filter rate plans by guest occupancies object.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.voidhandle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData) Handle method.Methods inherited from class de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractRatePlansHandler
getAccommodationService, getCancelPenaltiesDescriptionCreationStrategy, getGuestOccupancyConverter, getRatePlanConverter, setAccommodationService, setCancelPenaltiesDescriptionCreationStrategy, setGuestOccupancyConverter, setRatePlanConverter, updateCancelPenaltiesDescription, updateGuestOccupancy
-
Constructor Details
-
RatePlansHandler
public RatePlansHandler()
-
-
Method Details
-
handle
public void handle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData) Description copied from interface:AccommodationDetailsHandlerHandle method.- Parameters:
availabilityRequestData- the availability request dataaccommodationAvailabilityResponseData- 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 plansratePlans- the rate plansavailabilityRequestData- 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 plansroomStayCandidatesMaps- the room stay candidates mapsratePlan- the rate plan
-