Class DefaultTravelBundleTemplateFacade

java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultTravelBundleTemplateFacade
All Implemented Interfaces:
TravelBundleTemplateFacade
Direct Known Subclasses:
DefaultShoppingTravelBundleTemplateFacade

public class DefaultTravelBundleTemplateFacade extends Object implements TravelBundleTemplateFacade
Facade that provides bundle related functionalities
  • Field Details

  • Constructor Details

    • DefaultTravelBundleTemplateFacade

      public DefaultTravelBundleTemplateFacade()
  • Method Details

    • createUpgradeItineraryPricingInfoTotalPriceData

      public void createUpgradeItineraryPricingInfoTotalPriceData(BigDecimal selectedBundleTotalPrice, ItineraryPricingInfoData availableUpgradeItineraryPricingInfoData)
      Description copied from interface: TravelBundleTemplateFacade
      Method to update only the total price for the ItineraryPricingInfo respective to selected ItineraryPricingInfo.
      Specified by:
      createUpgradeItineraryPricingInfoTotalPriceData in interface TravelBundleTemplateFacade
      Parameters:
      selectedBundleTotalPrice - the ItineraryPricingInfo
      availableUpgradeItineraryPricingInfoData - availableUpgradeItineraryPricingInfoData
    • getMasterBundleTemplateId

      public String getMasterBundleTemplateId(String bundleTemplateId)
      Description copied from interface: TravelBundleTemplateFacade
      Returns the master bundle template id of the specified template id
      Specified by:
      getMasterBundleTemplateId in interface TravelBundleTemplateFacade
      Parameters:
      bundleTemplateId - the bundle template id
      Returns:
      master bundle template id
    • getSequenceNumber

      public int getSequenceNumber(String bundleType)
      method to calculate the sequence number of any bundle type
      Specified by:
      getSequenceNumber in interface TravelBundleTemplateFacade
      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:
      getSelectedItineraryPricingInfoData in interface TravelBundleTemplateFacade
      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: TravelBundleTemplateFacade
      Returns the bundle template for a given bundle id and catalog
      Specified by:
      getBundleTemplateByCodeAndCatalogVersion in interface TravelBundleTemplateFacade
      Parameters:
      bundleTemplateId - the bundle template id
      catalogId - the catalog id
      Returns:
      bundle template by code and catalog version
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - the model not found exception
      de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException - the ambiguous identifier exception
    • getBundleEntryGroup

      public EntryGroupData getBundleEntryGroup(AbstractOrderEntryModel entry)
      Gets the entry group from an entry model
      Specified by:
      getBundleEntryGroup in interface TravelBundleTemplateFacade
      Parameters:
      entry - the entry model
      Returns:
      the entryGroup Model
    • getBundleTemplateByExternalReferenceId

      public TravelBundleTemplateData getBundleTemplateByExternalReferenceId(String externalReferenceId)
      Gets the bundle template from entryGroup -> ExternalReferenceId
      Specified by:
      getBundleTemplateByExternalReferenceId in interface TravelBundleTemplateFacade
      Parameters:
      externalReferenceId - the external Reference Id
      Returns:
      the bundle template model
    • getParentBundleTemplateIdByExternalReferenceId

      public String getParentBundleTemplateIdByExternalReferenceId(String externalReferenceId)
      Gets the parent bundle template from entrygroup -> ExternalReferenceId
      Specified by:
      getParentBundleTemplateIdByExternalReferenceId in interface TravelBundleTemplateFacade
      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:
      getTransportBundleById in interface TravelBundleTemplateFacade
      Parameters:
      bundleTemplateId - the bundle template id
      catalogId - the catalog id
      Returns:
      bundle template by code and catalog version
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - the model not found exception
      de.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

      protected TransportOfferingService getTransportOfferingService()
      Gets transport offering service.
      Returns:
      the transport offering service
    • setTransportOfferingService

      public void setTransportOfferingService(TransportOfferingService transportOfferingService)
      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

      protected TravelCommerceStockService getCommerceStockService()
      Gets commerce stock service.
      Returns:
      the commerce stock service
    • setCommerceStockService

      public void setCommerceStockService(TravelCommerceStockService commerceStockService)
      Sets commerce stock service.
      Parameters:
      commerceStockService - the commerce stock service
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Gets travel commerce price facade.
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      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

      protected TravelBundleTemplateService getTravelBundleTemplateService()
      Gets travel bundle template service.
      Returns:
      travel bundle template service
    • setTravelBundleTemplateService

      public void setTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService)
      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