Class SkuInventoryExportProcessor
java.lang.Object
com.broadleafcommerce.inventory.dataexport.SkuInventoryExportProcessor
- All Implemented Interfaces:
com.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
public class SkuInventoryExportProcessor
extends Object
implements com.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
An
ExportProcessor
for exports of SkuInventory
.- Author:
- Kelly Tisdell (ktisdell)
-
Constructor Summary
ConstructorDescriptionSkuInventoryExportProcessor
(SkuInventoryService<SkuInventory> skuInventoryService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, SkuInventoryRowConverter rowConverter, com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification exportSpecification, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextRequest
buildContextRequestFromExport
(com.broadleafcommerce.common.dataexport.domain.Export export) protected String
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<SkuInventory> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export) protected com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter
protected com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>
protected com.fasterxml.jackson.databind.ObjectMapper
protected SkuInventoryRowConverter
protected SkuInventoryService<SkuInventory>
protected com.broadleafcommerce.common.extension.TypeFactory
protected void
logUnexpectedError
(com.broadleafcommerce.common.dataexport.domain.Export export, Exception e) com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<SkuInventory>
readRecordsToProcess
(com.broadleafcommerce.common.dataexport.domain.Export export)
-
Constructor Details
-
SkuInventoryExportProcessor
public SkuInventoryExportProcessor(@NonNull SkuInventoryService<SkuInventory> skuInventoryService, @NonNull com.broadleafcommerce.common.extension.TypeFactory typeFactory, @NonNull com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, @NonNull SkuInventoryRowConverter rowConverter, @NonNull com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification exportSpecification, @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @NonNull com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter)
-
-
Method Details
-
canHandle
public boolean canHandle(com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
canHandle
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
-
getHeaders
- Specified by:
getHeaders
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
-
readRecordsToProcess
public com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<SkuInventory> readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
readRecordsToProcess
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
-
generateRows
public com.broadleafcommerce.common.dataexport.service.RowGenerationResponse generateRows(List<SkuInventory> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
generateRows
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
-
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) -
buildErrorMessageForException
-
logUnexpectedError
protected void logUnexpectedError(com.broadleafcommerce.common.dataexport.domain.Export export, Exception e) -
getSkuInventoryService
-
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() -
getRowConverter
-
getExportSpecification
@NonNull protected com.broadleafcommerce.common.dataexport.service.specification.ExportSpecification getExportSpecification() -
getObjectMapper
@NonNull protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getContextRequestConverter
@NonNull protected com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter getContextRequestConverter()
-