Class AbstractOrderCreateOrderEntriesStrategy

java.lang.Object
de.hybris.platform.ndc182facades.facades.order.strategies.impl.AbstractOrderCreateOrderEntriesStrategy
Direct Known Subclasses:
DefaultNDCAlaCarteOfferDataOrderEntriesStrategy, DefaultNDCCarrierOfferDataOrderEntriesStrategy

public abstract class AbstractOrderCreateOrderEntriesStrategy extends Object
The ndc 18.2 abstract class of OrderCreateOrderEntriesStrategy interface.
  • Constructor Details

    • AbstractOrderCreateOrderEntriesStrategy

      public AbstractOrderCreateOrderEntriesStrategy()
  • Method Details

    • getFareProductFromBundleTemplate

      protected ProductModel getFareProductFromBundleTemplate(BundleTemplateModel bundleTemplate, String fareProductCode)
      Gets fare product from bundle template.
      Parameters:
      bundleTemplate - the bundle template
      fareProductCode - the fare product code
      Returns:
      the fare product from bundle template
    • getAncillariesFromBundleTemplate

      protected Map<BundleTemplateModel,List<ProductModel>> getAncillariesFromBundleTemplate(BundleTemplateModel bundleTemplate)
      Gets included ancillaries from bundle template.
      Parameters:
      bundleTemplate - the bundle template
      Returns:
      the ancillaries from bundle template
    • createIncludedAncillariesEntries

      protected List<OrderEntryModel> createIncludedAncillariesEntries(OrderModel order, List<ProductModel> includedAncillaries, int orderEntryGroupNumber, List<TransportOfferingModel> transportOfferings, TravellerModel traveller, String travelRoute, int originDestinationRefNumber, int bundleNumber, BundleTemplateModel childTemplate)
      Creates an order entry for all the ancillaries included in the bundle.
      Parameters:
      order - the order
      includedAncillaries - the included ancillaries
      orderEntryGroupNumber - the order entry group number
      transportOfferings - the transport offerings
      traveller - the traveller
      travelRoute - the travel route
      originDestinationRefNumber - the origin destination ref number
      bundleNumber - the bundle number
      childTemplate - the child template
      Returns:
      the list
    • createIncludedAncillaryEntry

      protected List<OrderEntryModel> createIncludedAncillaryEntry(OrderModel order, ProductModel product, int orderEntryGroupNumber, List<TransportOfferingModel> transportOfferings, TravellerModel traveller, String travelRoute, int originDestinationRefNumber, int bundleNumber, BundleTemplateModel childTemplate)
      Creates the order entry for the included ancillary.
      Parameters:
      order - the order
      product - the product
      orderEntryGroupNumber - the order entry group number
      transportOfferings - the transport offerings
      traveller - the traveller
      travelRoute - the travel route
      originDestinationRefNumber - the origin destination ref number
      bundleNumber - the bundle number
      childTemplate - the child template
      Returns:
      the order entry list
    • createTraveller

      protected TravellerModel createTraveller(NDCPassengerData passenger, int passengerNumber, IATAOrderCreateRQ orderCreateRQ, OrderModel order, List<String> titles) throws NDCException
      Create a traveller from cached ndc passenger.
      Throws:
      NDCException
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Gets model service.
      Returns:
      the model service
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Sets model service.
      Parameters:
      modelService - the model service
    • getOfferGroupToOriginDestinationMapping

      protected Map<String,String> getOfferGroupToOriginDestinationMapping()
      Gets offer group to origin destination mapping.
      Returns:
      the offer group to origin destination mapping
    • setOfferGroupToOriginDestinationMapping

      public void setOfferGroupToOriginDestinationMapping(Map<String,String> offerGroupToOriginDestinationMapping)
      Sets offer group to origin destination mapping.
      Parameters:
      offerGroupToOriginDestinationMapping - the offer group to origin destination mapping
    • getNdcOrderService

      protected NDCOrderService getNdcOrderService()
      Gets ndc order service.
      Returns:
      the ndc order service
    • setNdcOrderService

      public void setNdcOrderService(NDCOrderService ndcOrderService)
      Sets ndc order service.
      Parameters:
      ndcOrderService - the ndc order service
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
      Gets user service.
      Returns:
      the user service
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
      Sets user service.
      Parameters:
      userService - the user service
    • getNdcPassengerTypeService

      protected NDCPassengerTypeService getNdcPassengerTypeService()
      Gets ndc passenger type service.
      Returns:
      the ndc passenger type service
    • setNdcPassengerTypeService

      public void setNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService)
      Sets ndc passenger type service.
      Parameters:
      ndcPassengerTypeService - the ndc passenger type service
    • getTravellerService

      protected TravellerService getTravellerService()
      Gets traveller service.
      Returns:
      the traveller service
    • setTravellerService

      public void setTravellerService(TravellerService travellerService)
      Sets traveller service.
      Parameters:
      travellerService - the traveller service