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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PassengercreatePassenger(Integer passengerId, String passengerType) Creates a passenger from the map passenger type - ptc code.protected LinkedHashSet<Passenger>createPassengers(Map<Integer, String> passengerTypeMap) Creates the passengers set from the passengerTypeMap in the searchResponseWrapper.protected NDCPassengerTypeServiceGet ndcPassengerTypeServicevoidhandle(MerchandisingRequest merchandisingRequest, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) This handler will populate all the basic information, together with the flightPriceInfos, passengers and originDestinationsvoidsetNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService) Set ndcPassengerTypeService
-
Constructor Details
-
DefaultNDCMerchandisingRequestPassengerHandler
public DefaultNDCMerchandisingRequestPassengerHandler()
-
-
Method Details
-
handle
public void handle(MerchandisingRequest merchandisingRequest, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws NDCException Description copied from interface:NDCMerchandisingRequestHandlerThis handler will populate all the basic information, together with the flightPriceInfos, passengers and originDestinations- Specified by:
handlein interfaceNDCMerchandisingRequestHandler- Parameters:
merchandisingRequest- the merchandisingRequestshoppingMerchandisingHandlerData- the data handler object- Throws:
NDCException
-
createPassengers
protected LinkedHashSet<Passenger> createPassengers(Map<Integer, String> passengerTypeMap) throws NDCExceptionCreates 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
Creates a passenger from the map passenger type - ptc code.- Parameters:
passengerId- the passenger idpassengerType- the passenger type- Returns:
- the passenger
- Throws:
NDCException
-
getNdcPassengerTypeService
Get ndcPassengerTypeService- Returns:
- ndcPassengerTypeService
-
setNdcPassengerTypeService
Set ndcPassengerTypeService- Parameters:
ndcPassengerTypeService- tne ndcPassengerTypeService
-