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 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:
      executePipeline in interface MerchandisingAncillariesPipelineManager
      Parameters:
      transportOfferingCodes - the list of transport offering codes
      merchandisingResponse - the merchandising response
      passengerIdTypeMap - the passengerIdTypeMap
      cartModel - the passengers
      Returns:
      the AncillaryResponseData
    • distinctByKey

      protected static <T> Predicate<T> distinctByKey(Function<? super T,?> keyExtractor)
      Distinct by key predicate.
      Type Parameters:
      T - the type parameter
      Parameters:
      keyExtractor - the key extractor
      Returns:
      the predicate
    • getHandlers

      protected List<MerchandisingResponseHandler> getHandlers()
      Gets handlers.
      Returns:
      the handlers
    • setHandlers

      public void setHandlers(List<MerchandisingResponseHandler> handlers)
      Sets handlers.
      Parameters:
      handlers - the handlers
    • getOffersFacade

      protected OffersFacade getOffersFacade()
      Gets offers facade.
      Returns:
      the offers facade
    • setOffersFacade

      public void setOffersFacade(OffersFacade offersFacade)
      Sets offers facade.
      Parameters:
      offersFacade - the offers facade