Class DefaultOfferPricePaxSegmentListHandler
java.lang.Object
de.hybris.platform.ndc182facades.facades.offerprice.handlers.impl.DefaultOfferPricePaxSegmentListHandler
- All Implemented Interfaces:
OfferPriceDataListsHandler
public class DefaultOfferPricePaxSegmentListHandler
extends Object
implements OfferPriceDataListsHandler
The ndc 182 implementation of
OfferPriceDataListsHandler interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<PaxSegmentType>createPaxSegmentFromTransportOfferings(Set<String> transportOfferingCodes) Creates a pax segment for each transport offerings.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected TransportOfferingServiceGets transport offering service.voidhandle(NDCCarrierOfferData ndcOfferData, Set<Service1Type> services, DataListsType dataListsType) This handler populates the paxSegmentList (list of travel sectors) in the dataLists field.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.
-
Constructor Details
-
DefaultOfferPricePaxSegmentListHandler
public DefaultOfferPricePaxSegmentListHandler()
-
-
Method Details
-
handle
public void handle(NDCCarrierOfferData ndcOfferData, Set<Service1Type> services, DataListsType dataListsType) throws NDCException This handler populates the paxSegmentList (list of travel sectors) in the dataLists field. Since an offer corresponds either to an inbound or an outbound, each offeritems have the same transportOfferings.- Specified by:
handlein interfaceOfferPriceDataListsHandler- Parameters:
ndcOfferData- the ndcOfferDatadataListsType- the dataListsTypeservices- the services- Throws:
NDCException
-
createPaxSegmentFromTransportOfferings
protected Set<PaxSegmentType> createPaxSegmentFromTransportOfferings(Set<String> transportOfferingCodes) throws NDCException Creates a pax segment for each transport offerings.- Parameters:
transportOfferingCodes- the transport offering codes- Returns:
- the set of paxSegments
- 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
-