Class DataListsOfferPriceHandler
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.offerprice.handlers.impl.DataListsOfferPriceHandler
- All Implemented Interfaces:
OfferPriceHandler
Populates offer price response from NDC offer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<PaxSegmentType>createPaxSegmentFromTransportOfferings(Set<String> transportOfferingCodes) Creates passenger segments from transport offering codes.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected TransportOfferingServiceGets transport offering service.voidhandle(NDCCarrierOfferData ndcOfferData, IATAOfferPriceRS offerPriceRS) Handles data from ndcOfferData to offerPriceRS.protected voidpopulateOriginDestination(NDCCarrierOfferData ndcOfferData, DataListsType dataListsType) Populates origin destination from NDC offer toDataListsType.protected voidpopulatePax(NDCCarrierOfferData ndcOfferData, DataListsType dataListsType) Populates passengers from NDC offer toDataListsType.protected voidpopulatePaxJourney(NDCCarrierOfferData ndcOfferData, DataListsType dataListsType) Populates passenger journeys from NDC offer toDataListsType.protected voidpopulatePaxSegment(NDCCarrierOfferData ndcOfferData, DataListsType dataListsType) Populates passenger segments from NDC offer toDataListsType.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.
-
Constructor Details
-
DataListsOfferPriceHandler
public DataListsOfferPriceHandler()
-
-
Method Details
-
handle
public void handle(NDCCarrierOfferData ndcOfferData, IATAOfferPriceRS offerPriceRS) throws NDCException Description copied from interface:OfferPriceHandlerHandles data from ndcOfferData to offerPriceRS.- Specified by:
handlein interfaceOfferPriceHandler- Parameters:
ndcOfferData- the ndcOffersDataofferPriceRS- the offerPriceRS- Throws:
NDCException
-
populateOriginDestination
protected void populateOriginDestination(NDCCarrierOfferData ndcOfferData, DataListsType dataListsType) Populates origin destination from NDC offer toDataListsType.- Parameters:
ndcOfferData- the NDC offerdataListsType- the dataListsType
-
populatePaxJourney
Populates passenger journeys from NDC offer toDataListsType.- Parameters:
ndcOfferData- the NDC offerdataListsType- the dataListsType
-
populatePax
Populates passengers from NDC offer toDataListsType.- Parameters:
ndcOfferData- the NDC offerdataListsType- the dataListsType
-
populatePaxSegment
protected void populatePaxSegment(NDCCarrierOfferData ndcOfferData, DataListsType dataListsType) throws NDCException Populates passenger segments from NDC offer toDataListsType.- Parameters:
ndcOfferData- the NDC offerdataListsType- the dataListsType- Throws:
NDCException
-
createPaxSegmentFromTransportOfferings
protected Set<PaxSegmentType> createPaxSegmentFromTransportOfferings(Set<String> transportOfferingCodes) throws NDCException Creates passenger segments from transport offering codes.- Parameters:
transportOfferingCodes- the transport offering codes- Returns:
- passenger segments
- Throws:
NDCException
-
getTransportOfferingService
Gets transport offering service.- Returns:
- the transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets configuration service.- Returns:
- the configuration service
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.- Parameters:
configurationService- the configuration service
-