Class CustomerSegmentExportServiceImpl
java.lang.Object
com.broadleafcommerce.export.service.AbstractExportService<CustomerCustomerSegmentXref,CustomerSegmentDTO>
com.broadleafcommerce.customersegment.export.service.CustomerSegmentExportServiceImpl
- All Implemented Interfaces:
CustomerSegmentExportService,com.broadleafcommerce.export.service.ExportService<CustomerCustomerSegmentXref>
@ConditionalOnExport
@Service("blCustomerSegmentExportService")
public class CustomerSegmentExportServiceImpl
extends com.broadleafcommerce.export.service.AbstractExportService<CustomerCustomerSegmentXref,CustomerSegmentDTO>
implements CustomerSegmentExportService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected CustomerSegmentServiceFields inherited from class com.broadleafcommerce.export.service.AbstractExportService
exportWriterProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportAllBatchCustomerSegmentsCsv(Long firstId, int count, OutputStream output, boolean useHeaders) voidexportAllCustomerSegmentsCsv(OutputStream output, int batchSize) exportBatchCustomerSegmentsCsv(Long customerSegmentId, Long firstId, int count, OutputStream output, boolean useHeaders) protected LongexportCustomerSegments(List<CustomerCustomerSegmentXref> xrefs, int count, OutputStream output, boolean useHeaders) protected Class<? extends CustomerSegmentDTO>readBatch(int firstId, com.broadleafcommerce.export.event.consumer.ExportProcessExecutorContext exportProcessExecutorContext) protected CustomerSegmentDTOwrap(CustomerCustomerSegmentXref customerSegment, com.broadleafcommerce.export.event.consumer.ExportProcessExecutorContext exportProcessExecutorContext) Methods inherited from class com.broadleafcommerce.export.service.AbstractExportService
getNextStartingPoint, getTotalRecordsCount, modifyProcessExecutorContext, processBatchObjects, readAndExportBatch, writeBatch, writeBatchToOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.export.service.ExportService
getTotalRecordsCount, modifyProcessExecutorContext, readAndExportBatch, writeBatch
-
Field Details
-
customerSegmentService
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
CustomerSegmentExportServiceImpl
public CustomerSegmentExportServiceImpl()
-
-
Method Details
-
exportAllCustomerSegmentsCsv
- Specified by:
exportAllCustomerSegmentsCsvin interfaceCustomerSegmentExportService- Throws:
IOException
-
exportAllBatchCustomerSegmentsCsv
public Long exportAllBatchCustomerSegmentsCsv(Long firstId, int count, OutputStream output, boolean useHeaders) throws IOException - Specified by:
exportAllBatchCustomerSegmentsCsvin interfaceCustomerSegmentExportService- Throws:
IOException
-
exportBatchCustomerSegmentsCsv
public Long exportBatchCustomerSegmentsCsv(Long customerSegmentId, Long firstId, int count, OutputStream output, boolean useHeaders) throws IOException - Specified by:
exportBatchCustomerSegmentsCsvin interfaceCustomerSegmentExportService- Throws:
IOException
-
exportCustomerSegments
protected Long exportCustomerSegments(List<CustomerCustomerSegmentXref> xrefs, int count, OutputStream output, boolean useHeaders) throws tools.jackson.core.JacksonException, IOException - Throws:
tools.jackson.core.JacksonExceptionIOException
-
wrap
protected CustomerSegmentDTO wrap(CustomerCustomerSegmentXref customerSegment, com.broadleafcommerce.export.event.consumer.ExportProcessExecutorContext exportProcessExecutorContext) - Specified by:
wrapin classcom.broadleafcommerce.export.service.AbstractExportService<CustomerCustomerSegmentXref,CustomerSegmentDTO>
-
getDtoClass
- Specified by:
getDtoClassin classcom.broadleafcommerce.export.service.AbstractExportService<CustomerCustomerSegmentXref,CustomerSegmentDTO>
-
readBatch
public List<CustomerCustomerSegmentXref> readBatch(int firstId, com.broadleafcommerce.export.event.consumer.ExportProcessExecutorContext exportProcessExecutorContext) - Specified by:
readBatchin interfacecom.broadleafcommerce.export.service.ExportService<CustomerCustomerSegmentXref>
-
getTotalRecordsCount
- Specified by:
getTotalRecordsCountin interfacecom.broadleafcommerce.export.service.ExportService<CustomerCustomerSegmentXref>
-