Class PriceDataExportProcessor
- java.lang.Object
-
- com.broadleafcommerce.pricing.dataexport.PriceDataExportProcessor
-
- All Implemented Interfaces:
com.broadleafcommerce.common.dataexport.service.ExportProcessor<PriceData>
public class PriceDataExportProcessor extends Object implements com.broadleafcommerce.common.dataexport.service.ExportProcessor<PriceData>
AnExportProcessor
for exports ofPriceData
.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description PriceDataExportProcessor(PriceDataService<PriceData> priceDataService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, PriceDataRowConverter rowConverter, com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification exportSpecification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.broadleafcommerce.data.tracking.core.context.ContextRequest
buildContextRequestFromExport(com.broadleafcommerce.common.dataexport.domain.Export export)
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo
buildQueryContextInfo(com.broadleafcommerce.common.dataexport.domain.Export export)
boolean
canHandle(com.broadleafcommerce.common.dataexport.domain.Export export)
com.broadleafcommerce.common.dataexport.service.RowGenerationResponse
generateRows(List<PriceData> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export)
protected com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification
getExportSpecification()
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>
getFilterParser()
LinkedHashSet<String>
getHeaders()
protected PriceDataService<PriceData>
getPriceDataService()
protected PriceDataRowConverter
getRowConverter()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<PriceData>
readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export)
-
-
-
Constructor Detail
-
PriceDataExportProcessor
public PriceDataExportProcessor(PriceDataService<PriceData> priceDataService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, PriceDataRowConverter rowConverter, com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification exportSpecification)
-
-
Method Detail
-
canHandle
public boolean canHandle(com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
canHandle
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<PriceData>
-
getHeaders
public LinkedHashSet<String> getHeaders()
- Specified by:
getHeaders
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<PriceData>
-
readRecordsToProcess
public com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<PriceData> readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
readRecordsToProcess
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<PriceData>
-
generateRows
public com.broadleafcommerce.common.dataexport.service.RowGenerationResponse generateRows(List<PriceData> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
generateRows
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<PriceData>
-
buildQueryContextInfo
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildQueryContextInfo(com.broadleafcommerce.common.dataexport.domain.Export export)
-
buildContextRequestFromExport
protected com.broadleafcommerce.data.tracking.core.context.ContextRequest buildContextRequestFromExport(com.broadleafcommerce.common.dataexport.domain.Export export)
-
getPriceDataService
protected PriceDataService<PriceData> getPriceDataService()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
getFilterParser
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getFilterParser()
-
getRowConverter
protected PriceDataRowConverter getRowConverter()
-
getExportSpecification
protected com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification getExportSpecification()
-
-