Class DealRoomRatesHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractRoomRatesHandler
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.DealRoomRatesHandler
- All Implemented Interfaces:
AccommodationDetailsHandler
This handler populates the
AccommodationAvailabilityResponseData with the
RoomRateData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateServiceprotected List<RoomRateData>getRoomRates(LocalDateTime date, String bundleTemplateId) Returns the list ofRoomRateDatacreated based on the list ofRoomRateProductModelspecified in theAccommodationBundleTemplateModelcorresponding to the given bundleTemplateIdvoidhandle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData) Handle method.voidsetBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) Methods inherited from class de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractRoomRatesHandler
createRoomRateData, getEnumerationService, isValidDayOfWeek, isValidRange, setEnumerationService, validateRoomRateAgainstDate
-
Constructor Details
-
DealRoomRatesHandler
public DealRoomRatesHandler()
-
-
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
-
getRoomRates
Returns the list ofRoomRateDatacreated based on the list ofRoomRateProductModelspecified in theAccommodationBundleTemplateModelcorresponding to the given bundleTemplateId- Parameters:
date- the date to be used to check the validity of the RoomRatebundleTemplateId- the bundleTemplateId- Returns:
- a List
-
getBundleTemplateService
protected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService getBundleTemplateService()- Returns:
- the bundleTemplateService
-
setBundleTemplateService
public void setBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) - Parameters:
bundleTemplateService- the bundleTemplateService to set
-