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 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:
      handle in interface ServiceListDataListHandler<ShoppingMerchandisingHandlerData>
      Parameters:
      shoppingMerchandisingHandlerData - the shoppingMerchandisingHandlerData
      dataListsType - the dataListsType
      services - 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

      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