Class 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 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 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)
      • 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()
      • 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()