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.-
Field Summary
Fields inherited from class de.hybris.platform.oneorderfacades.handlers.AbstractOneOrderMessageHandler
PAX_JOURNEY_ID_CONCATENATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PaxJourneyTypecreatePaxJourney(TravelRouteModel travelRouteModel, Set<String> transportOfferingsCodeList) Create seat profiles type.protected List<PaxJourneyType>createPaxJourneyFromOriginDestination(Map<String, List<String>> originDestinationTransportOfferingsMap) Creates a pax journey from the origin and the destination.voidhandle(OrderModel orderModel, DataListsType dataListsType) Creates a collection of segments which satisfies transportation of a passenger for a given origin and destination.protected voidpopulateOriginDestinationTransportOfferingsMap(Map<String, List<String>> originDestinationTransportOfferingsMap, List<TransportOfferingModel> transportOfferings) Populates the origin destination transport offerings map.Methods inherited from class de.hybris.platform.oneorderfacades.handlers.AbstractOneOrderMessageHandler
generateOrderEntryID, getDestinationFromTransportOfferings, getOriginFromTransportOfferings
-
Constructor Details
-
DefaultOneOrderOSINPaxJourneyListTypeHandler
public DefaultOneOrderOSINPaxJourneyListTypeHandler()
-
-
Method Details
-
handle
Creates a collection of segments which satisfies transportation of a passenger for a given origin and destination.- Specified by:
handlein interfaceOneOrderOSINDataListsHandler- Parameters:
orderModel- the orderModeldataListsType- 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 maptransportOfferings- 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 modeltransportOfferingsCodeList- the transport offering codes list- Returns:
- the seat profile type
-