Class DefaultOneOrderSDNPaxJourneyListTypeHandler

java.lang.Object
de.hybris.platform.oneorderfacades.handlers.AbstractOneOrderMessageHandler
de.hybris.platform.oneorderfacades.handlers.sdn.impl.DefaultOneOrderSDNPaxJourneyListTypeHandler
All Implemented Interfaces:
OneOrderSDNDataListsHandler

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

    • DefaultOneOrderSDNPaxJourneyListTypeHandler

      public DefaultOneOrderSDNPaxJourneyListTypeHandler()
  • Method Details

    • handle

      public void handle(List<IATAServiceModel> iataServices, DataListsType dataListsType)
      Creates a collection of segments which satisfies transportation of a passenger for a given origin and destination.
      Specified by:
      handle in interface OneOrderSDNDataListsHandler
      Parameters:
      iataServices - the iataServices
      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