Class ServiceListPaxSegmentListHandler
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.servicelist.handlers.impl.ServiceListPaxSegmentListHandler
- All Implemented Interfaces:
ServiceListDataListHandler<ShoppingMerchandisingHandlerData>
public class ServiceListPaxSegmentListHandler
extends Object
implements ServiceListDataListHandler<ShoppingMerchandisingHandlerData>
The ndc implementation of
ServiceListDataListHandler interface to populate the pax segment list fields.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<PaxSegmentType>createPaxSegmentFromTransportOfferings(Set<String> transportOfferingCodes) Creates a pax segment for each transport offerings.protected TransportOfferingServiceGets transport offering service.voidhandle(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData, Set<ServiceType> services, DataListsType dataListsType) This handler populates the paxSegmentList (list of travel sectors) in the dataLists field.voidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.
-
Constructor Details
-
ServiceListPaxSegmentListHandler
public ServiceListPaxSegmentListHandler()
-
-
Method Details
-
handle
public void handle(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData, Set<ServiceType> services, DataListsType dataListsType) throws NDCException This handler populates the paxSegmentList (list of travel sectors) in the dataLists field.- Specified by:
handlein interfaceServiceListDataListHandler<ShoppingMerchandisingHandlerData>- Parameters:
shoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerDatadataListsType- 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
-