Class DefaultMerchandisingAncillariesPipelineManager
java.lang.Object
de.hybris.platform.prosfacades.ancillary.search.manager.impl.DefaultMerchandisingAncillariesPipelineManager
- All Implemented Interfaces:
MerchandisingAncillariesPipelineManager
public class DefaultMerchandisingAncillariesPipelineManager
extends Object
implements MerchandisingAncillariesPipelineManager
The Pros implementation of
MerchandisingAncillariesPipelineManager interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> Predicate<T>distinctByKey(Function<? super T, ?> keyExtractor) Distinct by key predicate.executePipeline(List<String> transportOfferingCodes, MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, CartModel cartModel) Creates the ancillaryResponseData and populates all the fields.protected List<MerchandisingResponseHandler>Gets handlers.protected OffersFacadeGets offers facade.voidsetHandlers(List<MerchandisingResponseHandler> handlers) Sets handlers.voidsetOffersFacade(OffersFacade offersFacade) Sets offers facade.
-
Constructor Details
-
DefaultMerchandisingAncillariesPipelineManager
public DefaultMerchandisingAncillariesPipelineManager()
-
-
Method Details
-
executePipeline
public AncillaryResponseData executePipeline(List<String> transportOfferingCodes, MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, CartModel cartModel) Creates the ancillaryResponseData and populates all the fields.- Specified by:
executePipelinein interfaceMerchandisingAncillariesPipelineManager- Parameters:
transportOfferingCodes- the list of transport offering codesmerchandisingResponse- the merchandising responsepassengerIdTypeMap- the passengerIdTypeMapcartModel- the passengers- Returns:
- the AncillaryResponseData
-
distinctByKey
Distinct by key predicate.- Type Parameters:
T- the type parameter- Parameters:
keyExtractor- the key extractor- Returns:
- the predicate
-
getHandlers
Gets handlers.- Returns:
- the handlers
-
setHandlers
Sets handlers.- Parameters:
handlers- the handlers
-
getOffersFacade
Gets offers facade.- Returns:
- the offers facade
-
setOffersFacade
Sets offers facade.- Parameters:
offersFacade- the offers facade
-