Class PropertyDataBasicHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.AbstractDefaultPropertyHandler
de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.PropertyDataBasicHandler
- All Implemented Interfaces:
PropertyHandler
public class PropertyDataBasicHandler
extends AbstractDefaultPropertyHandler
implements PropertyHandler
Concrete implementation of the
PropertyHandler interface. Handler is responsible to set common attributes on
the PropertyData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AwardDatacreateAwardData(AwardType awardType, Double rating, String additionalInfo) protected List<FacilityData>getAmenitiesForProperty(List<String> amenities) Get amenities for propertyprotected de.hybris.platform.enumeration.EnumerationServiceGets enumeration service.protected LocationDatagetLocationDetails(AccommodationOfferingDayRateData accommodationOfferingDayRateData) Get location detailsprotected PropertyFacilityServiceGet property facility servicevoidhandle(Map<Integer, List<AccommodationOfferingDayRateData>> propertyMap, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData) Handle method.protected voidhandlingAttributes(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, PropertyData propertyData) Populates all the fields belonging to the same propertyvoidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.voidsetPropertyFacilityService(PropertyFacilityService propertyFacilityService) Set property facility serviceMethods inherited from class de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.AbstractDefaultPropertyHandler
getRequestedDuration, validateDayRateAgainstDates, validateDayRateAgainstRoomStayCandidates, validateDayRatesAgainstRequest
-
Constructor Details
-
PropertyDataBasicHandler
public PropertyDataBasicHandler()
-
-
Method Details
-
handle
public void handle(Map<Integer, List<AccommodationOfferingDayRateData>> propertyMap, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData) Description copied from interface:PropertyHandlerHandle method.- Specified by:
handlein interfacePropertyHandler- Parameters:
propertyMap- 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 all the fields belonging to the same property- Specified by:
handlingAttributesin classAbstractDefaultPropertyHandler- Parameters:
dayRatesForRoomStayCandidate- map of documents per room stay candidatespropertyData- the dto to be populated
-
getLocationDetails
protected LocationData getLocationDetails(AccommodationOfferingDayRateData accommodationOfferingDayRateData) Get location details- Parameters:
accommodationOfferingDayRateData-- Returns:
- the location data
-
getAmenitiesForProperty
Get amenities for property- Parameters:
amenities-- Returns:
-
createAwardData
-
getPropertyFacilityService
Get property facility service- Returns:
-
setPropertyFacilityService
Set property facility service- Parameters:
propertyFacilityService-
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()Gets enumeration service.- Returns:
- the enumeration service
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.- Parameters:
enumerationService- the enumeration service
-