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 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 interface com.broadleafcommerce.common.dataexport.service.ExportProcessor<SkuInventory>
    • getHeaders

      public LinkedHashSet<String> getHeaders()
      Specified by:
      getHeaders in interface com.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 interface com.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 interface com.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

      protected String buildErrorMessageForException(Exception e)
    • 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()