Class DefaultNDCMerchandisingRequestPassengerHandler

java.lang.Object
de.hybris.platform.ndc182prosfacades.facades.servicelist.handlers.impl.DefaultNDCMerchandisingRequestPassengerHandler
All Implemented Interfaces:
NDCMerchandisingRequestHandler

public class DefaultNDCMerchandisingRequestPassengerHandler extends Object implements NDCMerchandisingRequestHandler
The NDC implementation of MerchandisingRequestHandler interface. This class populate the passenger list.
  • Constructor Details

    • DefaultNDCMerchandisingRequestPassengerHandler

      public DefaultNDCMerchandisingRequestPassengerHandler()
  • Method Details

    • handle

      public void handle(MerchandisingRequest merchandisingRequest, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws NDCException
      Description copied from interface: NDCMerchandisingRequestHandler
      This handler will populate all the basic information, together with the flightPriceInfos, passengers and originDestinations
      Specified by:
      handle in interface NDCMerchandisingRequestHandler
      Parameters:
      merchandisingRequest - the merchandisingRequest
      shoppingMerchandisingHandlerData - the data handler object
      Throws:
      NDCException
    • createPassengers

      protected LinkedHashSet<Passenger> createPassengers(Map<Integer,String> passengerTypeMap) throws NDCException
      Creates the passengers set from the passengerTypeMap in the searchResponseWrapper. This is done in order to maintain the relation between the passenger ids of the IntelliPricerResponse and the fare references.
      Parameters:
      passengerTypeMap - the passenger type map
      Returns:
      the set of passengers
      Throws:
      NDCException
    • createPassenger

      protected Passenger createPassenger(Integer passengerId, String passengerType) throws NDCException
      Creates a passenger from the map passenger type - ptc code.
      Parameters:
      passengerId - the passenger id
      passengerType - the passenger type
      Returns:
      the passenger
      Throws:
      NDCException
    • getNdcPassengerTypeService

      protected NDCPassengerTypeService getNdcPassengerTypeService()
      Get ndcPassengerTypeService
      Returns:
      ndcPassengerTypeService
    • setNdcPassengerTypeService

      public void setNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService)
      Set ndcPassengerTypeService
      Parameters:
      ndcPassengerTypeService - tne ndcPassengerTypeService