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>
AnExportProcessor
for exports ofSkuInventory
.- Author:
- Kelly Tisdell (ktisdell)
-
-
Constructor Summary
Constructors Constructor Description SkuInventoryExportProcessor(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
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 String
buildErrorMessageForException(Exception e)
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
getContextRequestConverter()
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 com.fasterxml.jackson.databind.ObjectMapper
getObjectMapper()
protected SkuInventoryRowConverter
getRowConverter()
protected SkuInventoryService<SkuInventory>
getSkuInventoryService()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
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 Detail
-
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 Detail
-
canHandle
public boolean canHandle(com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
canHandle
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
-
getHeaders
public LinkedHashSet<String> 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)
-
logUnexpectedError
protected void logUnexpectedError(com.broadleafcommerce.common.dataexport.domain.Export export, Exception e)
-
getSkuInventoryService
@NonNull protected SkuInventoryService<SkuInventory> 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
@NonNull protected SkuInventoryRowConverter 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()
-
-