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 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:
      handle in interface OfferPriceDataListsHandler
      Parameters:
      ndcOfferData - the ndcOfferData
      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
    • 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