Class DefaultDealBundleTemplateService

java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultDealBundleTemplateService
All Implemented Interfaces:
DealBundleTemplateService

public class DefaultDealBundleTemplateService extends Object implements DealBundleTemplateService
Default implementation of the DealBundleTemplateService
  • Constructor Details

    • DefaultDealBundleTemplateService

      public DefaultDealBundleTemplateService()
  • Method Details

    • getDealBundleTemplateById

      public DealBundleTemplateModel getDealBundleTemplateById(String dealBundleTemplateId)
      Description copied from interface: DealBundleTemplateService
      Returns the DealBundleTemplateModel corresponding to the given dealBundleTemplateId
      Specified by:
      getDealBundleTemplateById in interface DealBundleTemplateService
      Parameters:
      dealBundleTemplateId - the id of the DealBundleTemplate
      Returns:
      the DealBundleTemplateModel corresponding to the given id, null if no DealBundleTemplates are found.
    • isDealBundleOrder

      public boolean isDealBundleOrder(String orderCode)
      Description copied from interface: DealBundleTemplateService
      Checks if an order is a deal: an order is a deal if it is present at least one entry with an AccommodationBundleTemplateModel and at least one entry with a BundleTemplateModel, and if the rootBundle of all the entries is the same.
      Specified by:
      isDealBundleOrder in interface DealBundleTemplateService
      Parameters:
      orderCode - as the order code
      Returns:
      true if the order is a deal, false otherwise
    • abstractOrderIsDeal

      public boolean abstractOrderIsDeal(AbstractOrderModel abstractOrderModel)
      Description copied from interface: DealBundleTemplateService
      Abstract order is deal.
      Specified by:
      abstractOrderIsDeal in interface DealBundleTemplateService
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      true, if successful
    • getBundleTemplateByEntryGroup

      protected BundleTemplateModel getBundleTemplateByEntryGroup(AbstractOrderEntryModel entryModel)
      Gets bundle template by entry group.
      Parameters:
      entryModel - the entry model
      Returns:
      the bundle template by entry group
    • 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
    • getBookingService

      protected BookingService getBookingService()
      Returns:
      the bookingService
    • setBookingService

      public void setBookingService(BookingService bookingService)
      Parameters:
      bookingService - the bookingService to set