Class ServiceListAlaCarteOffersHandler
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.servicelist.handlers.impl.AbstractAlaCarteOffersHandler
de.hybris.platform.ndc182shoppingfacades.facades.servicelist.handlers.impl.ServiceListAlaCarteOffersHandler
- All Implemented Interfaces:
ServiceListHandler<ShoppingMerchandisingHandlerData>
public class ServiceListAlaCarteOffersHandler
extends AbstractAlaCarteOffersHandler
implements ServiceListHandler<ShoppingMerchandisingHandlerData>
The ndc implementation of
ServiceListHandler interface to populate the alacarte offers fields.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ALaCarteOfferItemType>createAlaCarteOfferItems(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Creates ala carte offer items list.protected List<ALaCarteOfferItemType>Create ALaCarteOfferItemType from AncillaryDataprotected de.hybris.platform.site.BaseSiteServiceGets base site service.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected de.hybris.platform.servicelayer.keygenerator.KeyGeneratorGets key generator.protected NDCShoppingMerchandisingFacadeget ndcMerchandisingFacadeprotected TransportOfferingServiceGets transport offering service.voidhandle(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData, IATAServiceListRS serviceListRS) Handles data from source to serviceListRS.voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) Sets base site service.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetKeyGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator) Sets key generator.voidsetNdcMerchandisingFacade(NDCShoppingMerchandisingFacade ndcMerchandisingFacade) set ndcMerchandisingFacadevoidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.Methods inherited from class de.hybris.platform.ndc182shoppingfacades.facades.servicelist.handlers.impl.AbstractAlaCarteOffersHandler
createNdcPassengerList, getNdcOfferFacade, setNdcOfferFacade, storeAlaCarteCacheData
-
Constructor Details
-
ServiceListAlaCarteOffersHandler
public ServiceListAlaCarteOffersHandler()
-
-
Method Details
-
handle
public void handle(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData, IATAServiceListRS serviceListRS) throws NDCException, NDCCacheException Description copied from interface:ServiceListHandlerHandles data from source to serviceListRS.- Specified by:
handlein interfaceServiceListHandler<ShoppingMerchandisingHandlerData>- Parameters:
shoppingMerchandisingHandlerData- the sourceserviceListRS- the serviceListRS- Throws:
NDCExceptionNDCCacheException
-
createAlaCarteOfferItems
protected List<ALaCarteOfferItemType> createAlaCarteOfferItems(ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) throws NDCException Creates ala carte offer items list.- Parameters:
shoppingMerchandisingHandlerData- the offer item ids- Returns:
- the list
- Throws:
NDCException- the NDCException
-
createAlaCarteOfferItemsFromOriginDestinationOfferInfoData
protected List<ALaCarteOfferItemType> createAlaCarteOfferItemsFromOriginDestinationOfferInfoData(List<AncillaryData> ancillaryData) Create ALaCarteOfferItemType from AncillaryData- Parameters:
ancillaryData- the ancillaryData- Returns:
- List
-
getNdcMerchandisingFacade
get ndcMerchandisingFacade- Returns:
- ndcMerchandisingFacade
-
setNdcMerchandisingFacade
set ndcMerchandisingFacade- Parameters:
ndcMerchandisingFacade- the ndcMerchandisingFacade
-
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
-
getBaseSiteService
protected de.hybris.platform.site.BaseSiteService getBaseSiteService()Gets base site service.- Returns:
- the base site service
-
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) Sets base site service.- Parameters:
baseSiteService- the base site service
-
getKeyGenerator
protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getKeyGenerator()Gets key generator.- Returns:
- the key generator
-
setKeyGenerator
public void setKeyGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator) Sets key generator.- Parameters:
keyGenerator- the key generator
-
getTransportOfferingService
Gets transport offering service.- Returns:
- the transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-