Class OptimizedAccommodationService

java.lang.Object
de.hybris.platform.travelservices.services.impl.OptimizedAccommodationService
All Implemented Interfaces:
AccommodationService

public class OptimizedAccommodationService extends Object implements AccommodationService
Optimized version of AccommodationService. It uses the list of accommodation codes on AccommodationOfferingModel to retrieve accommodations instead of finding them by the StockLevel connection.
  • Constructor Details

    • OptimizedAccommodationService

      public OptimizedAccommodationService()
  • Method Details

    • getAccommodationForAccommodationOffering

      public List<AccommodationModel> getAccommodationForAccommodationOffering(String accommodationOfferingCode)
      Description copied from interface: AccommodationService
      Returns a list of AccommodationModel for a given AccommodationOfferingCode
      Specified by:
      getAccommodationForAccommodationOffering in interface AccommodationService
      Parameters:
      accommodationOfferingCode - the code of the accommodationOffering to use to get the list of AccommodationModel
      Returns:
      the list of Accommodations found
    • getAccommodationForAccommodationOfferingAndCatalog

      public List<AccommodationModel> getAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode, String catalogVersion)
      Description copied from interface: AccommodationService
      Returns a list of AccommodationModel for a given AccommodationOfferingCode and catalogVersion
      Specified by:
      getAccommodationForAccommodationOfferingAndCatalog in interface AccommodationService
      Parameters:
      accommodationOfferingCode - the code of the accommodationOffering to use to get the list of AccommodationModel
      catalogVersion - the catalog version to use to get the list of AccommodationModel
      Returns:
      the list of Accommodations found
    • getAccommodationForAccommodationOffering

      public AccommodationModel getAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode)
      Description copied from interface: AccommodationService
      Returns a list of AccommodationModel for the given accommodationOfferingCode and accommodationCodes
      Specified by:
      getAccommodationForAccommodationOffering in interface AccommodationService
      Parameters:
      accommodationOfferingCode - the code of the AccommodationOffering to use to get the Accommodation
      accommodationCode - the codes of the Accommodation
      Returns:
      the object of AccommodationModel
    • getAccommodationOfferingService

      protected AccommodationOfferingService getAccommodationOfferingService()
    • setAccommodationOfferingService

      public void setAccommodationOfferingService(AccommodationOfferingService accommodationOfferingService)
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)