Class DefaultTravelBundleTemplateFacade
java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultTravelBundleTemplateFacade
- All Implemented Interfaces:
TravelBundleTemplateFacade
- Direct Known Subclasses:
DefaultShoppingTravelBundleTemplateFacade
Facade that provides bundle related functionalities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUpgradeItineraryPricingInfoTotalPriceData(BigDecimal selectedBundleTotalPrice, ItineraryPricingInfoData availableUpgradeItineraryPricingInfoData) Method to update only the total price for the ItineraryPricingInfo respective to selected ItineraryPricingInfo.Gets the entry group from an entry modelgetBundleTemplateByCodeAndCatalogVersion(String bundleTemplateId, String catalogId) Returns the bundle template for a given bundle id and cataloggetBundleTemplateByExternalReferenceId(String externalReferenceId) Gets the bundle template from entryGroup -> ExternalReferenceIdprotected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateServiceGets bundle template service.protected TravelCommerceStockServiceGets commerce stock service.protected de.hybris.platform.servicelayer.dto.converter.Converter<EntryGroup,EntryGroupData> Gets entry group converter.getMasterBundleTemplateId(String bundleTemplateId) Returns the master bundle template id of the specified template idgetParentBundleTemplateIdByExternalReferenceId(String externalReferenceId) Gets the parent bundle template from entrygroup -> ExternalReferenceIdprotected de.hybris.platform.product.ProductServiceGets product service.getSelectedItineraryPricingInfoData(PricedItineraryData pricedItineraryData) method to find those itineraryPricingInfoData objects out of a pricedItinerary which have selected attribute set to true i.e.intgetSequenceNumber(String bundleType) method to calculate the sequence number of any bundle typeprotected de.hybris.platform.servicelayer.session.SessionServiceGets session service.getTransportBundleById(String bundleTemplateId, String catalogId) Returns the transport bundle template for a given bundle id and catalog.protected TransportOfferingServiceGets transport offering service.protected de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel,TravelBundleTemplateData> Gets travel bundle data template converter.protected TravelBundleTemplateServiceGets travel bundle template service.protected TravelCommercePriceFacadeGets travel commerce price facade.protected de.hybris.platform.servicelayer.type.TypeServiceGets type service.voidsetBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) Sets bundle template service.voidsetCommerceStockService(TravelCommerceStockService commerceStockService) Sets commerce stock service.voidsetEntryGroupConverter(de.hybris.platform.servicelayer.dto.converter.Converter<EntryGroup, EntryGroupData> entryGroupConverter) Sets entry group converter.voidsetProductService(de.hybris.platform.product.ProductService productService) Sets product service.voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.voidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.voidsetTravelBundleDataTemplateConverter(de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel, TravelBundleTemplateData> travelBundleDataTemplateConverter) Sets travel bundle data template converter.voidsetTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService) Sets travel bundle template service.voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade) Sets travel commerce price facade.voidsetTypeService(de.hybris.platform.servicelayer.type.TypeService typeService) Sets type service.
-
Field Details
-
DEFAULT_CATALOG_VERSION
- See Also:
-
-
Constructor Details
-
DefaultTravelBundleTemplateFacade
public DefaultTravelBundleTemplateFacade()
-
-
Method Details
-
createUpgradeItineraryPricingInfoTotalPriceData
public void createUpgradeItineraryPricingInfoTotalPriceData(BigDecimal selectedBundleTotalPrice, ItineraryPricingInfoData availableUpgradeItineraryPricingInfoData) Description copied from interface:TravelBundleTemplateFacadeMethod to update only the total price for the ItineraryPricingInfo respective to selected ItineraryPricingInfo.- Specified by:
createUpgradeItineraryPricingInfoTotalPriceDatain interfaceTravelBundleTemplateFacade- Parameters:
selectedBundleTotalPrice- the ItineraryPricingInfoavailableUpgradeItineraryPricingInfoData- availableUpgradeItineraryPricingInfoData
-
getMasterBundleTemplateId
Description copied from interface:TravelBundleTemplateFacadeReturns the master bundle template id of the specified template id- Specified by:
getMasterBundleTemplateIdin interfaceTravelBundleTemplateFacade- Parameters:
bundleTemplateId- the bundle template id- Returns:
- master bundle template id
-
getSequenceNumber
method to calculate the sequence number of any bundle type- Specified by:
getSequenceNumberin interfaceTravelBundleTemplateFacade- Parameters:
bundleType- the bundle type- Returns:
- sequence number
-
getSelectedItineraryPricingInfoData
public ItineraryPricingInfoData getSelectedItineraryPricingInfoData(PricedItineraryData pricedItineraryData) method to find those itineraryPricingInfoData objects out of a pricedItinerary which have selected attribute set to true i.e. which a customer has selected while booking a journey- Specified by:
getSelectedItineraryPricingInfoDatain interfaceTravelBundleTemplateFacade- Parameters:
pricedItineraryData- the priced itinerary data- Returns:
- selected itinerary pricing info data
-
getBundleTemplateByCodeAndCatalogVersion
public TravelBundleTemplateData getBundleTemplateByCodeAndCatalogVersion(String bundleTemplateId, String catalogId) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException, de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException Description copied from interface:TravelBundleTemplateFacadeReturns the bundle template for a given bundle id and catalog- Specified by:
getBundleTemplateByCodeAndCatalogVersionin interfaceTravelBundleTemplateFacade- Parameters:
bundleTemplateId- the bundle template idcatalogId- the catalog id- Returns:
- bundle template by code and catalog version
- Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- the model not found exceptionde.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException- the ambiguous identifier exception
-
getBundleEntryGroup
Gets the entry group from an entry model- Specified by:
getBundleEntryGroupin interfaceTravelBundleTemplateFacade- Parameters:
entry- the entry model- Returns:
- the entryGroup Model
-
getBundleTemplateByExternalReferenceId
Gets the bundle template from entryGroup -> ExternalReferenceId- Specified by:
getBundleTemplateByExternalReferenceIdin interfaceTravelBundleTemplateFacade- Parameters:
externalReferenceId- the external Reference Id- Returns:
- the bundle template model
-
getParentBundleTemplateIdByExternalReferenceId
Gets the parent bundle template from entrygroup -> ExternalReferenceId- Specified by:
getParentBundleTemplateIdByExternalReferenceIdin interfaceTravelBundleTemplateFacade- Parameters:
externalReferenceId- the external Reference Id- Returns:
- the parent bundle template model
-
getTransportBundleById
public TravelBundleTemplateData getTransportBundleById(String bundleTemplateId, String catalogId) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException, de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException Returns the transport bundle template for a given bundle id and catalog.- Specified by:
getTransportBundleByIdin interfaceTravelBundleTemplateFacade- Parameters:
bundleTemplateId- the bundle template idcatalogId- the catalog id- Returns:
- bundle template by code and catalog version
- Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- the model not found exceptionde.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException- the ambiguous identifier exception
-
getTypeService
protected de.hybris.platform.servicelayer.type.TypeService getTypeService()Gets type service.- Returns:
- the type service
-
setTypeService
public void setTypeService(de.hybris.platform.servicelayer.type.TypeService typeService) Sets type service.- Parameters:
typeService- the type service
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()Gets session service.- Returns:
- the session service
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.- Parameters:
sessionService- the session service
-
getTransportOfferingService
Gets transport offering service.- Returns:
- the transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-
getProductService
protected de.hybris.platform.product.ProductService getProductService()Gets product service.- Returns:
- the product service
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) Sets product service.- Parameters:
productService- the product service
-
getCommerceStockService
Gets commerce stock service.- Returns:
- the commerce stock service
-
setCommerceStockService
Sets commerce stock service.- Parameters:
commerceStockService- the commerce stock service
-
getTravelCommercePriceFacade
Gets travel commerce price facade.- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
Sets travel commerce price facade.- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-
getBundleTemplateService
protected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService getBundleTemplateService()Gets bundle template service.- Returns:
- the bundleTemplateService
-
setBundleTemplateService
public void setBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) Sets bundle template service.- Parameters:
bundleTemplateService- the bundleTemplateService to set
-
getTravelBundleTemplateService
Gets travel bundle template service.- Returns:
- travel bundle template service
-
setTravelBundleTemplateService
Sets travel bundle template service.- Parameters:
travelBundleTemplateService- the travel bundle template service
-
getTravelBundleDataTemplateConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel,TravelBundleTemplateData> getTravelBundleDataTemplateConverter()Gets travel bundle data template converter.- Returns:
- travel bundle data template converter
-
setTravelBundleDataTemplateConverter
public void setTravelBundleDataTemplateConverter(de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel, TravelBundleTemplateData> travelBundleDataTemplateConverter) Sets travel bundle data template converter.- Parameters:
travelBundleDataTemplateConverter- the travel bundle data template converter
-
getEntryGroupConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<EntryGroup,EntryGroupData> getEntryGroupConverter()Gets entry group converter.- Returns:
- the entry group converter
-
setEntryGroupConverter
public void setEntryGroupConverter(de.hybris.platform.servicelayer.dto.converter.Converter<EntryGroup, EntryGroupData> entryGroupConverter) Sets entry group converter.- Parameters:
entryGroupConverter- the entry group converter
-