Class ProductExportProcessor
java.lang.Object
com.broadleafcommerce.catalog.dataexport.ProductExportProcessor
- All Implemented Interfaces:
com.broadleafcommerce.common.dataexport.service.ExportProcessor<Product>
public class ProductExportProcessor
extends Object
implements com.broadleafcommerce.common.dataexport.service.ExportProcessor<Product>
An
ExportProcessor
for exports of Product
.- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
ConstructorDescriptionProductExportProcessor
(ProductService<Product> productService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ExportRowProducer<Product> productExportRowProducer) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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<Product> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export) protected com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>
protected com.fasterxml.jackson.databind.ObjectMapper
protected ExportRowProducer<Product>
protected ProductService<Product>
protected com.broadleafcommerce.common.extension.TypeFactory
com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<Product>
readRecordsToProcess
(com.broadleafcommerce.common.dataexport.domain.Export export)
-
Constructor Details
-
ProductExportProcessor
public ProductExportProcessor(@NonNull ProductService<Product> productService, @NonNull com.broadleafcommerce.common.extension.TypeFactory typeFactory, @NonNull com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, @NonNull com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter, @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @NonNull ExportRowProducer<Product> productExportRowProducer)
-
-
Method Details
-
canHandle
public boolean canHandle(com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
canHandle
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Product>
-
getHeaders
- Specified by:
getHeaders
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Product>
-
readRecordsToProcess
public com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<Product> readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
readRecordsToProcess
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Product>
-
buildQueryContextInfo
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildQueryContextInfo(com.broadleafcommerce.common.dataexport.domain.Export export) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
buildContextRequestFromExport
protected com.broadleafcommerce.data.tracking.core.context.ContextRequest buildContextRequestFromExport(com.broadleafcommerce.common.dataexport.domain.Export export) -
generateRows
public com.broadleafcommerce.common.dataexport.service.RowGenerationResponse generateRows(List<Product> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
generateRows
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Product>
-
getProductService
-
getTypeFactory
@NonNull protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getFilterParser
@NonNull protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getFilterParser() -
getContextRequestConverter
@NonNull protected com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter getContextRequestConverter() -
getObjectMapper
@NonNull protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getProductExportRowProducer
-