Class PropertyDataAccommodationInfoHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.AbstractDefaultPropertyHandler
de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.PropertyDataAccommodationInfoHandler
- All Implemented Interfaces:
PropertyHandler
- Direct Known Subclasses:
PackageAccommodationInfoHandler
public class PropertyDataAccommodationInfoHandler
extends AbstractDefaultPropertyHandler
implements PropertyHandler
Concrete implementation of the
PropertyHandler interface. Handler is responsible to the accommodation attributes on
the PropertyData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData) Handle method.protected voidhandlingAttributes(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, PropertyData propertyData) Populates the list of accommodation info, e.g.Methods inherited from class de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.AbstractDefaultPropertyHandler
getRequestedDuration, validateDayRateAgainstDates, validateDayRateAgainstRoomStayCandidates, validateDayRatesAgainstRequest
-
Constructor Details
-
PropertyDataAccommodationInfoHandler
public PropertyDataAccommodationInfoHandler()
-
-
Method Details
-
handle
public void handle(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData) Description copied from interface:PropertyHandlerHandle method.- Specified by:
handlein interfacePropertyHandler- Parameters:
dayRatesForRoomStayCandidate- the day rates for room stay candidateaccommodationSearchRequest- the accommodation search requestpropertyData- the property data
-
handlingAttributes
protected void handlingAttributes(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, PropertyData propertyData) Populates the list of accommodation info, e.g. accommodation names with distinct values and their cardinality- Specified by:
handlingAttributesin classAbstractDefaultPropertyHandler- Parameters:
dayRatesForRoomStayCandidate- map of documents per room stay candidatespropertyData- the dto to be populated
-