Class ServiceListPaxSegmentListHandler

java.lang.Object
de.hybris.platform.ndc182facades.facades.servicelist.handlers.impl.ServiceListPaxSegmentListHandler
All Implemented Interfaces:
ServiceListDataListHandler<NDCCarrierOfferData>

public class ServiceListPaxSegmentListHandler extends Object implements ServiceListDataListHandler<NDCCarrierOfferData>
The ndc implementation of ServiceListDataListHandler interface to populate the pax segment list fields.
  • Constructor Details

    • ServiceListPaxSegmentListHandler

      public ServiceListPaxSegmentListHandler()
  • Method Details

    • handle

      public void handle(NDCCarrierOfferData ndcOfferData, Set<ServiceType> services, DataListsType dataListsType, List<AbstractOrderEntryModel> selectedEntries) throws NDCException
      This handler populates the paxSegmentList (list of travel sectors) in the dataLists field.
      Specified by:
      handle in interface ServiceListDataListHandler<NDCCarrierOfferData>
      Parameters:
      ndcOfferData - the ndcOfferData
      dataListsType - the dataListsType
      services - the services
      selectedEntries - the selectedEntries
      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

      protected TransportOfferingService getTransportOfferingService()
      Gets transport offering service.
      Returns:
      the transport offering service
    • setTransportOfferingService

      public void setTransportOfferingService(TransportOfferingService transportOfferingService)
      Sets transport offering service.
      Parameters:
      transportOfferingService - the transport offering service