Class OfferCodeExportProcessor
java.lang.Object
com.broadleafcommerce.promotion.offer.dataexport.OfferCodeExportProcessor
- All Implemented Interfaces:
com.broadleafcommerce.common.dataexport.service.ExportProcessor<OfferCode>
public class OfferCodeExportProcessor
extends Object
implements com.broadleafcommerce.common.dataexport.service.ExportProcessor<OfferCode>
An
ExportProcessor
for exports of OfferCode
.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorDescriptionOfferCodeExportProcessor
(OfferCodeService<OfferCode> offerCodeService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, OfferCodeRowConverter rowConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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<OfferCode> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export) protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>
protected OfferCodeService<OfferCode>
protected OfferCodeRowConverter
protected com.broadleafcommerce.common.extension.TypeFactory
readOfferCodesByExportTarget
(@NonNull com.broadleafcommerce.common.dataexport.domain.Export export) ReadsOfferCodes
based on theExport.getTarget()
.com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<OfferCode>
readRecordsToProcess
(com.broadleafcommerce.common.dataexport.domain.Export export)
-
Constructor Details
-
OfferCodeExportProcessor
public OfferCodeExportProcessor(@NonNull OfferCodeService<OfferCode> offerCodeService, @NonNull com.broadleafcommerce.common.extension.TypeFactory typeFactory, @NonNull com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> filterParser, @NonNull OfferCodeRowConverter rowConverter)
-
-
Method Details
-
canHandle
public boolean canHandle(com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
canHandle
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<OfferCode>
-
getHeaders
- Specified by:
getHeaders
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<OfferCode>
-
readRecordsToProcess
public com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<OfferCode> readRecordsToProcess(com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
readRecordsToProcess
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<OfferCode>
-
generateRows
public com.broadleafcommerce.common.dataexport.service.RowGenerationResponse generateRows(List<OfferCode> batchToProcess, com.broadleafcommerce.common.dataexport.domain.Export export) - Specified by:
generateRows
in interfacecom.broadleafcommerce.common.dataexport.service.ExportProcessor<OfferCode>
-
readOfferCodesByExportTarget
protected Stream<OfferCode> readOfferCodesByExportTarget(@NonNull @NonNull com.broadleafcommerce.common.dataexport.domain.Export export) ReadsOfferCodes
based on theExport.getTarget()
.- Parameters:
export
- theExport
to use to read theOfferCodes
- Returns:
- a stream of
OfferCodes
based on theExport.getTarget()
-
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) -
getOfferCodeService
-
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
-