Class CustomerExportProcessor
- java.lang.Object
-
- com.broadleafcommerce.customer.dataexport.CustomerExportProcessor
-
- All Implemented Interfaces:
com.broadleafcommerce.common.dataexport.service.ExportProcessor<Customer>
@DataRouteByExample(Customer.class) public class CustomerExportProcessor extends Object implements com.broadleafcommerce.common.dataexport.service.ExportProcessor<Customer>
AnExportProcessor
for exports ofCustomer
.- Author:
- Vitalii Voronkov (vvoronkov)
-
-
Constructor Summary
Constructors Constructor Description CustomerExportProcessor(CustomerService<Customer> customerService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, CustomerRowConverter customerRowConverter, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator)
-
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 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<Customer> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export)
protected CustomerRowConverter
getCustomerRowConverter()
protected CustomerService<Customer>
getCustomerService()
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>
getFilterParser()
protected cz.jirutka.rsql.parser.ast.Node
getFilters(com.broadleafcommerce.common.dataexport.domain.Export export)
LinkedHashSet<String>
getHeaders()
protected com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator
getHydrator()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<Customer>
readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export)
-
-
-
Constructor Detail
-
CustomerExportProcessor
public CustomerExportProcessor(CustomerService<Customer> customerService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, CustomerRowConverter customerRowConverter, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator)
-
-
Method Detail
-
canHandle
public boolean canHandle(com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
canHandle
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Customer>
-
getHeaders
public LinkedHashSet<String> getHeaders()
- Specified by:
getHeaders
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Customer>
-
readRecordsToProcess
public com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<Customer> readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
readRecordsToProcess
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Customer>
-
generateRows
public com.broadleafcommerce.common.dataexport.service.RowGenerationResponse generateRows(List<Customer> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export)
- Specified by:
generateRows
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<Customer>
-
getFilters
protected cz.jirutka.rsql.parser.ast.Node getFilters(com.broadleafcommerce.common.dataexport.domain.Export export)
-
buildQueryContextInfo
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildQueryContextInfo(com.broadleafcommerce.common.dataexport.domain.Export export)
-
buildContextRequestFromExport
protected com.broadleafcommerce.data.tracking.core.context.ContextRequest buildContextRequestFromExport(com.broadleafcommerce.common.dataexport.domain.Export export)
-
getCustomerService
protected CustomerService<Customer> getCustomerService()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
getFilterParser
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getFilterParser()
-
getCustomerRowConverter
protected CustomerRowConverter getCustomerRowConverter()
-
getHydrator
protected com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator getHydrator()
-
-