Class DefaultPROSMerchandisingFacade
java.lang.Object
de.hybris.platform.shoppingfacades.facades.impl.DefaultShoppingMerchandisingFacade
de.hybris.platform.prosfacades.facades.impl.DefaultPROSMerchandisingFacade
- All Implemented Interfaces:
PROSMerchandisingFacade,ShoppingMerchandisingFacade
public class DefaultPROSMerchandisingFacade
extends DefaultShoppingMerchandisingFacade
implements PROSMerchandisingFacade
The Pros extension of
DefaultShoppingMerchandisingFacade. This class overrides the populateShoppingAncillaries in order
to perform a PROS merchandising Request.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MerchandisingRequestMessagebuildMerchandisingMessage(CartModel cartModel, SearchResponseWrapper searchResponseWrapper) Builds a merchandising message.voidcreateMerchandisingChangeFee(Integer entryId) This method creates a change fee when an existing merchandising entry is updated, removed or deleted.protected AncillaryResponseDatacreateShoppingAncillaries(List<String> transportOfferingCodes) This method creates and sends a merchandising request in order to retrieve all the available ancillaries.protected BaggageResponseDatacreateShoppingBaggages(List<String> transportOfferingCodes) This method creates and sends a merchandising request in order to retrieve all the available charged baggages.voiddoMerchandisingRequest(SearchResponseWrapper searchResponseWrapper, CartModel cartModel) This methods performs the merchandising call.protected Map<String,CreateMerchandisingChangeFeeStrategy> Gets create merchandising change fee strategy map.protected MerchandisingBaggagePipelineManagerGets merchandising baggage pipeline manager.protected MerchandisingRequestPipelineManagerGets merchandising request pipeline manager.protected MerchandisingAncillariesPipelineManagerGets merchandising response pipeline manager.protected List<MerchandisingValidationStrategy>Gets merchandising validation strategy list.protected de.hybris.platform.servicelayer.model.ModelServiceGets model service.protected PROSMerchandisingServiceGets pros merchandising service.protected PROSSearchResponseServiceGets pros search response service.protected SearchResponseWrappergetSearchResponseWrapper(CartModel cartModel) Gets search response wrapper from cart.protected TravelCartServiceGets travel cart service.voidsetCreateMerchandisingChangeFeeStrategyMap(Map<String, CreateMerchandisingChangeFeeStrategy> createMerchandisingChangeFeeStrategyMap) Sets create merchandising change fee strategy map.voidsetMerchandisingBaggagePipelineManager(MerchandisingBaggagePipelineManager merchandisingBaggagePipelineManager) Sets merchandising baggage pipeline manager.voidsetMerchandisingRequestPipelineManager(MerchandisingRequestPipelineManager merchandisingRequestPipelineManager) Sets merchandising request pipeline manager.voidsetMerchandisingResponsePipelineManager(MerchandisingAncillariesPipelineManager merchandisingResponsePipelineManager) Sets merchandising response pipeline manager.voidsetMerchandisingValidationStrategyList(List<MerchandisingValidationStrategy> merchandisingValidationStrategyList) Sets merchandising validation strategy list.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetProsMerchandisingService(PROSMerchandisingService prosMerchandisingService) Sets pros merchandising service.voidsetProsSearchResponseService(PROSSearchResponseService prosSearchResponseService) Sets pros search response service.voidsetTravelCartService(TravelCartService travelCartService) Sets travel cart service.voidvalidateMerchandisingEntries(AbstractOrderModel orderModel) Validate shopping ancillaries in the cart with merchandising response.Methods inherited from class de.hybris.platform.shoppingfacades.facades.impl.DefaultShoppingMerchandisingFacade
discardAncillaryProducts, discardBaggageProducts, filterAncillaryProducts, filterBaggageProducts, getAncillaryResponseDataConverter, getCartService, getOffersFacade, getTransportOfferingService, getTravelRulesService, populateCommerceAncillaries, populateCommerceBaggageProducts, searchAncillaries, searchBaggages, searchBaggages, setAncillaryResponseDataConverter, setCartService, setOffersFacade, setTransportOfferingService, setTravelRulesService
-
Constructor Details
-
DefaultPROSMerchandisingFacade
public DefaultPROSMerchandisingFacade()
-
-
Method Details
-
doMerchandisingRequest
public void doMerchandisingRequest(SearchResponseWrapper searchResponseWrapper, CartModel cartModel) throws MerchandisingRequestException Description copied from interface:PROSMerchandisingFacadeThis methods performs the merchandising call.- Specified by:
doMerchandisingRequestin interfacePROSMerchandisingFacade- Parameters:
searchResponseWrapper- the search response wrappercartModel- the cart model- Throws:
MerchandisingRequestException- the merchandising request exception
-
createShoppingAncillaries
protected AncillaryResponseData createShoppingAncillaries(List<String> transportOfferingCodes) throws MerchandisingRequestException, InvalidSessionCartException, FarePriceException Description copied from class:DefaultShoppingMerchandisingFacadeThis method creates and sends a merchandising request in order to retrieve all the available ancillaries. The response will be filtered accordingly to the list of flights and converted in an AncillaryResponseData.- Specified by:
createShoppingAncillariesin classDefaultShoppingMerchandisingFacade- Parameters:
transportOfferingCodes- the list of flight codes- Returns:
- the AncillaryResponseData
- Throws:
MerchandisingRequestException- the merchandising request exceptionInvalidSessionCartException- the invalid session cart exceptionFarePriceException- the fare price exception
-
getSearchResponseWrapper
protected SearchResponseWrapper getSearchResponseWrapper(CartModel cartModel) throws FarePriceException Gets search response wrapper from cart.- Parameters:
cartModel- the cart model- Returns:
- the search response wrapper
- Throws:
FarePriceException- the fare price exception
-
buildMerchandisingMessage
protected MerchandisingRequestMessage buildMerchandisingMessage(CartModel cartModel, SearchResponseWrapper searchResponseWrapper) Builds a merchandising message.- Parameters:
cartModel- the cart modelsearchResponseWrapper- the search response wrapper- Returns:
- the merchandising message
-
validateMerchandisingEntries
public void validateMerchandisingEntries(AbstractOrderModel orderModel) throws TravelCartValidationException Description copied from interface:ShoppingMerchandisingFacadeValidate shopping ancillaries in the cart with merchandising response.- Specified by:
validateMerchandisingEntriesin interfaceShoppingMerchandisingFacade- Specified by:
validateMerchandisingEntriesin classDefaultShoppingMerchandisingFacade- Parameters:
orderModel- the cart model- Throws:
TravelCartValidationException
-
createMerchandisingChangeFee
Description copied from interface:ShoppingMerchandisingFacadeThis method creates a change fee when an existing merchandising entry is updated, removed or deleted.- Specified by:
createMerchandisingChangeFeein interfaceShoppingMerchandisingFacade- Specified by:
createMerchandisingChangeFeein classDefaultShoppingMerchandisingFacade- Parameters:
entryId- the entry id- Throws:
CancelFlightException- the cancel flight exception
-
createShoppingBaggages
protected BaggageResponseData createShoppingBaggages(List<String> transportOfferingCodes) throws InvalidSessionCartException, FarePriceException, MerchandisingRequestException Description copied from class:DefaultShoppingMerchandisingFacadeThis method creates and sends a merchandising request in order to retrieve all the available charged baggages. The response will be filtered accordingly to the list of flights and converted in a BaggageResponseData.- Specified by:
createShoppingBaggagesin classDefaultShoppingMerchandisingFacade- Parameters:
transportOfferingCodes- the list of flight codes- Returns:
- the BaggageResponseData
- Throws:
InvalidSessionCartExceptionFarePriceExceptionMerchandisingRequestException
-
getProsMerchandisingService
Gets pros merchandising service.- Returns:
- the pros merchandising service
-
setProsMerchandisingService
Sets pros merchandising service.- Parameters:
prosMerchandisingService- the pros merchandising service
-
getMerchandisingRequestPipelineManager
Gets merchandising request pipeline manager.- Returns:
- the merchandising request pipeline manager
-
setMerchandisingRequestPipelineManager
public void setMerchandisingRequestPipelineManager(MerchandisingRequestPipelineManager merchandisingRequestPipelineManager) Sets merchandising request pipeline manager.- Parameters:
merchandisingRequestPipelineManager- the merchandising request pipeline manager
-
getProsSearchResponseService
Gets pros search response service.- Returns:
- the pros search response service
-
setProsSearchResponseService
Sets pros search response service.- Parameters:
prosSearchResponseService- the pros search response service
-
getMerchandisingResponsePipelineManager
Gets merchandising response pipeline manager.- Returns:
- the merchandising response pipeline manager
-
setMerchandisingResponsePipelineManager
public void setMerchandisingResponsePipelineManager(MerchandisingAncillariesPipelineManager merchandisingResponsePipelineManager) Sets merchandising response pipeline manager.- Parameters:
merchandisingResponsePipelineManager- the merchandising response pipeline manager
-
getMerchandisingBaggagePipelineManager
Gets merchandising baggage pipeline manager.- Returns:
- the merchandising baggage pipeline manager
-
setMerchandisingBaggagePipelineManager
public void setMerchandisingBaggagePipelineManager(MerchandisingBaggagePipelineManager merchandisingBaggagePipelineManager) Sets merchandising baggage pipeline manager.- Parameters:
merchandisingBaggagePipelineManager- the merchandising baggage pipeline manager
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()Gets model service.- Returns:
- the model service
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.- Parameters:
modelService- the model service
-
getTravelCartService
Gets travel cart service.- Returns:
- the travel cart service
-
setTravelCartService
Sets travel cart service.- Parameters:
travelCartService- the travel cart service
-
getCreateMerchandisingChangeFeeStrategyMap
protected Map<String,CreateMerchandisingChangeFeeStrategy> getCreateMerchandisingChangeFeeStrategyMap()Gets create merchandising change fee strategy map.- Returns:
- the create merchandising change fee strategy map
-
setCreateMerchandisingChangeFeeStrategyMap
public void setCreateMerchandisingChangeFeeStrategyMap(Map<String, CreateMerchandisingChangeFeeStrategy> createMerchandisingChangeFeeStrategyMap) Sets create merchandising change fee strategy map.- Parameters:
createMerchandisingChangeFeeStrategyMap- the create merchandising change fee strategy map
-
getMerchandisingValidationStrategyList
Gets merchandising validation strategy list.- Returns:
- the merchandising validation strategy list
-
setMerchandisingValidationStrategyList
public void setMerchandisingValidationStrategyList(List<MerchandisingValidationStrategy> merchandisingValidationStrategyList) Sets merchandising validation strategy list.- Parameters:
merchandisingValidationStrategyList- the merchandising validation strategy list
-