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 Details

    • PropertyDataBasicHandler

      public PropertyDataBasicHandler()
  • Method Details

    • handle

      public void handle(Map<Integer,List<AccommodationOfferingDayRateData>> propertyMap, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData)
      Description copied from interface: PropertyHandler
      Handle method.
      Specified by:
      handle in interface PropertyHandler
      Parameters:
      propertyMap - the day rates for room stay candidate
      accommodationSearchRequest - the accommodation search request
      propertyData - 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:
      handlingAttributes in class AbstractDefaultPropertyHandler
      Parameters:
      dayRatesForRoomStayCandidate - map of documents per room stay candidates
      propertyData - the dto to be populated
    • getLocationDetails

      protected LocationData getLocationDetails(AccommodationOfferingDayRateData accommodationOfferingDayRateData)
      Get location details
      Parameters:
      accommodationOfferingDayRateData -
      Returns:
      the location data
    • getAmenitiesForProperty

      protected List<FacilityData> getAmenitiesForProperty(List<String> amenities)
      Get amenities for property
      Parameters:
      amenities -
      Returns:
    • createAwardData

      protected AwardData createAwardData(AwardType awardType, Double rating, String additionalInfo)
    • getPropertyFacilityService

      protected PropertyFacilityService getPropertyFacilityService()
      Get property facility service
      Returns:
    • setPropertyFacilityService

      public void setPropertyFacilityService(PropertyFacilityService propertyFacilityService)
      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