Class DefaultServiceListShoppingDataHandler

java.lang.Object
de.hybris.platform.ndc182prosfacades.facades.servicelist.handlers.impl.DefaultServiceListShoppingDataHandler
All Implemented Interfaces:
ServiceListShoppingDataHandler<AbstractOrderModel>

public class DefaultServiceListShoppingDataHandler extends Object implements ServiceListShoppingDataHandler<AbstractOrderModel>
The DefaultServiceListShoppingDataHandler which transforms the AbstractOrderModel to ShoppingMerchandisingHandlerData
  • Constructor Details

    • DefaultServiceListShoppingDataHandler

      public DefaultServiceListShoppingDataHandler()
  • Method Details

    • handle

      public void handle(AbstractOrderModel source, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws NDCException, NDCCacheException
      Populate the shoppingMerchandisingHandlerData
      Specified by:
      handle in interface ServiceListShoppingDataHandler<AbstractOrderModel>
      Parameters:
      source - the source
      shoppingMerchandisingHandlerData - the shoppingMerchandisingHandlerData
      Throws:
      NDCException - the NDCException
      NDCCacheException - the NDCCacheException
    • createPassengerHandlerData

      protected List<PassengerHandlerData> createPassengerHandlerData(Map<Integer,String> passengerTypeMap)
      Create a List from the passengerTypeMap
      Parameters:
      passengerTypeMap - Map<Integer, String> the passengerTypeMap
      Returns:
      List
    • createOfferingHandlerDataFromModel

      protected TransportOfferingHandlerData createOfferingHandlerDataFromModel(Integer originDestinationRefNumber, TransportOfferingModel transportOffering)
      Create a TransportOfferingHandlerData from transportOffering and originDestinationRefNumber
      Parameters:
      originDestinationRefNumber - the originDestinationRefNumber
      transportOffering - the transportOffering
      Returns:
      TransportOfferingHandlerData
    • createFBCHandlerData

      protected List<OfferItemFBCHandlerData> createFBCHandlerData(Map<String,org.apache.commons.lang3.tuple.Triple<Set<String>,Set<Integer>,Set<Integer>>> fbcMap)
      Create an OfferItemFBCHandlerData list from the map
      Parameters:
      fbcMap - Map<String, Triple<Set, Set, Set>> the fbcMap, fbcCode -> Pair<flightKeys, flightIds, paxIds>
      Returns:
      List
    • createRBDHandlerData

      protected List<OfferItemRBDHandlerData> createRBDHandlerData(Map<String,Set<String>> rbdMap)
      Create a OfferItemRBDHandlerData list from the map
      Parameters:
      rbdMap - Map<String, Set> the rbdMap, rbdCode -> List
      Returns:
      List
    • getRBDsFromResponse

      protected List<Rbd> getRBDsFromResponse(PROSSearchResponse prosSearchResponse)
      Get the rdb list from PROSSearchResponse
      Parameters:
      prosSearchResponse - the pros search response
      Returns:
      List
    • getFareReferencesFromResponse

      protected List<FareReference> getFareReferencesFromResponse(PROSSearchResponse prosSearchResponse)
      Get the fare reference list from PROSSearchResponse
      Parameters:
      prosSearchResponse - the prosSearchResponse
      Returns:
      the list of fares
    • getFareFromFareReference

      protected Fare getFareFromFareReference(PROSSearchResponse prosSearchResponse, FareReference fareReference)
      Get fare from fare reference
      Parameters:
      prosSearchResponse - the prosSearchResponse
      fareReference - the fareReference
      Returns:
      Fare
    • getProsSearchResponseService

      protected PROSSearchResponseService getProsSearchResponseService()
      GET PROSSearchResponseService
      Returns:
      PROSSearchResponseService
    • setProsSearchResponseService

      public void setProsSearchResponseService(PROSSearchResponseService prosSearchResponseService)
      SET prosSearchResponseService
      Parameters:
      prosSearchResponseService - the prosSearchResponseService