Class DefaultDealBundleTemplateService
java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultDealBundleTemplateService
- All Implemented Interfaces:
DealBundleTemplateService
Default implementation of the
DealBundleTemplateService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstractOrderIsDeal(AbstractOrderModel abstractOrderModel) Abstract order is deal.protected BookingServiceprotected BundleTemplateModelgetBundleTemplateByEntryGroup(AbstractOrderEntryModel entryModel) Gets bundle template by entry group.protected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateServicegetDealBundleTemplateById(String dealBundleTemplateId) Returns the DealBundleTemplateModel corresponding to the given dealBundleTemplateIdbooleanisDealBundleOrder(String orderCode) Checks if an order is a deal: an order is a deal if it is present at least one entry with anAccommodationBundleTemplateModeland at least one entry with aBundleTemplateModel, and if the rootBundle of all the entries is the same.voidsetBookingService(BookingService bookingService) voidsetBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService)
-
Constructor Details
-
DefaultDealBundleTemplateService
public DefaultDealBundleTemplateService()
-
-
Method Details
-
getDealBundleTemplateById
Description copied from interface:DealBundleTemplateServiceReturns the DealBundleTemplateModel corresponding to the given dealBundleTemplateId- Specified by:
getDealBundleTemplateByIdin interfaceDealBundleTemplateService- Parameters:
dealBundleTemplateId- the id of the DealBundleTemplate- Returns:
- the DealBundleTemplateModel corresponding to the given id, null if no DealBundleTemplates are found.
-
isDealBundleOrder
Description copied from interface:DealBundleTemplateServiceChecks if an order is a deal: an order is a deal if it is present at least one entry with anAccommodationBundleTemplateModeland at least one entry with aBundleTemplateModel, and if the rootBundle of all the entries is the same.- Specified by:
isDealBundleOrderin interfaceDealBundleTemplateService- Parameters:
orderCode- as the order code- Returns:
- true if the order is a deal, false otherwise
-
abstractOrderIsDeal
Description copied from interface:DealBundleTemplateServiceAbstract order is deal.- Specified by:
abstractOrderIsDealin interfaceDealBundleTemplateService- Parameters:
abstractOrderModel- the abstract order model- Returns:
- true, if successful
-
getBundleTemplateByEntryGroup
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
- Returns:
- the bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-