Class DefaultDealSearchRequestPipelineManager
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.manager.impl.DefaultDealSearchRequestPipelineManager
- All Implemented Interfaces:
DealSearchRequestPipelineManager
public class DefaultDealSearchRequestPipelineManager
extends Object
implements DealSearchRequestPipelineManager
Default implementation of
DealSearchRequestPipelineManager-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutePipeline(DealBundleTemplateModel dealBundleTemplateModel, Date departureDate) Execute pipeline.protected List<BundleTemplateData>getBundleTemplates(DealBundleTemplateModel dealBundleTemplateModel) Returns the list of BundleTemplateData created for the given dealBundleTemplateprotected de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel,BundleTemplateData> Gets deal bundle template converter.protected DategetFirstDealDate(DealBundleTemplateModel dealBundleTemplateModel) Returns the first date from the current date that matches the startingDate pattern and availability dates for the given packageIdprotected List<DealPackageRequestHandler>Gets deal package request handlers.protected de.hybris.platform.servicelayer.time.TimeServiceGets time service.voidsetDealBundleTemplateConverter(de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel, BundleTemplateData> dealBundleTemplateConverter) Sets deal bundle template converter.voidsetHandlers(List<DealPackageRequestHandler> handlers) Sets deal package request handlers.voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.
-
Constructor Details
-
DefaultDealSearchRequestPipelineManager
public DefaultDealSearchRequestPipelineManager()
-
-
Method Details
-
executePipeline
public PackageRequestData executePipeline(DealBundleTemplateModel dealBundleTemplateModel, Date departureDate) Description copied from interface:DealSearchRequestPipelineManagerExecute pipeline.- Specified by:
executePipelinein interfaceDealSearchRequestPipelineManager- Parameters:
dealBundleTemplateModel- the deal bundle template modeldepartureDate- the departure date- Returns:
- the PackageRequestData
-
getFirstDealDate
Returns the first date from the current date that matches the startingDate pattern and availability dates for the given packageId- Parameters:
dealBundleTemplateModel- the dealBundleTemplateModel- Returns:
- the first deal date
-
getBundleTemplates
protected List<BundleTemplateData> getBundleTemplates(DealBundleTemplateModel dealBundleTemplateModel) Returns the list of BundleTemplateData created for the given dealBundleTemplate- Parameters:
dealBundleTemplateModel- the dealBundleTemplateModel- Returns:
- the list of BundleTemplateData
-
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()Gets time service.- Returns:
- the time service
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.- Parameters:
timeService- the time service
-
getDealBundleTemplateConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel,BundleTemplateData> getDealBundleTemplateConverter()Gets deal bundle template converter.- Returns:
- the deal bundle template converter
-
setDealBundleTemplateConverter
public void setDealBundleTemplateConverter(de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel, BundleTemplateData> dealBundleTemplateConverter) Sets deal bundle template converter.- Parameters:
dealBundleTemplateConverter- the deal bundle template converter
-
getHandlers
Gets deal package request handlers.- Returns:
- the deal package request handlers
-
setHandlers
Sets deal package request handlers.- Parameters:
handlers- the deal package request handlers
-