Class DefaultOneOrderOSINPaxJourneyListTypeHandler

java.lang.Object
de.hybris.platform.oneorderfacades.handlers.AbstractOneOrderMessageHandler
de.hybris.platform.oneorderfacades.handlers.osin.impl.DefaultOneOrderOSINPaxJourneyListTypeHandler
All Implemented Interfaces:
OneOrderOSINDataListsHandler

public class DefaultOneOrderOSINPaxJourneyListTypeHandler extends AbstractOneOrderMessageHandler implements OneOrderOSINDataListsHandler
The One Order implementation of OneOrderOSINDataListsHandler interface. This handler populates the paxJourneyList in the dataList attribute.
  • Constructor Details

    • DefaultOneOrderOSINPaxJourneyListTypeHandler

      public DefaultOneOrderOSINPaxJourneyListTypeHandler()
  • Method Details

    • handle

      public void handle(OrderModel orderModel, DataListsType dataListsType)
      Creates a collection of segments which satisfies transportation of a passenger for a given origin and destination.
      Specified by:
      handle in interface OneOrderOSINDataListsHandler
      Parameters:
      orderModel - the orderModel
      dataListsType - the dataListsType
    • populateOriginDestinationTransportOfferingsMap

      protected void populateOriginDestinationTransportOfferingsMap(Map<String,List<String>> originDestinationTransportOfferingsMap, List<TransportOfferingModel> transportOfferings)
      Populates the origin destination transport offerings map.
      Parameters:
      originDestinationTransportOfferingsMap - the origin destination transport offerings map
      transportOfferings - the transport offerings
    • createPaxJourneyFromOriginDestination

      protected List<PaxJourneyType> createPaxJourneyFromOriginDestination(Map<String,List<String>> originDestinationTransportOfferingsMap)
      Creates a pax journey from the origin and the destination.
      Parameters:
      originDestinationTransportOfferingsMap - the origin destination transport offerings map
    • createPaxJourney

      protected PaxJourneyType createPaxJourney(TravelRouteModel travelRouteModel, Set<String> transportOfferingsCodeList)
      Create seat profiles type.
      Parameters:
      travelRouteModel - the travel route model
      transportOfferingsCodeList - the transport offering codes list
      Returns:
      the seat profile type