Uses of Class
com.broadleafcommerce.datafeed.service.collector.support.DataFeedCollectionRequest
Package
Description
-
Uses of DataFeedCollectionRequest in com.broadleafcommerce.datafeed.service.collector
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfo
AbstractJsonArrayDataFeedCollector.buildContextInfo
(DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.type.OperationType operationType) boolean
CollectedEntityContributor.canHandle
(@NonNull Class<?> entityType, @NonNull DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Indicates if thisCollectedEntityContributor
can handle the given batch of collected entities.boolean
DataFeedCollector.canHandle
(DataFeedCollectionRequest request) Indicates if thisDataFeedCollector
can handle this type ofDataFeedProcessExecution
, presumably because of an entity type or other feed type indicator.void
CollectedEntityContributor.contribute
(@NonNull List<? extends CollectedEntity<?>> entities, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hook point to allow the augmentation or decoration of a batch of entities that have been fetched, but that may need additional data from other sources.protected Path
AbstractJsonArrayDataFeedCollector.createEmptyLocalCollectedDataFile
(DataFeedCollectionRequest request) Create the local output file that will ultimately be populated with collected data.protected void
AbstractJsonArrayDataFeedCollector.executeContributors
(List<E> records, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) AbstractJsonArrayDataFeedCollector.handle
(DataFeedCollectionRequest request) DataFeedCollector.handle
(DataFeedCollectionRequest request) This method handles collecting and transforming data of a certain type into a JSON file that will be used to transform and publish to syndicates such as Google or Facebook.AbstractJsonArrayDataFeedCollector.readDataFeedRecords
(@NonNull DataFeedCollectionRequest request, @NonNull List<ID> idBatch, @NonNull Map<String, Object> collectorProcessState, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) AbstractJsonArrayDataFeedCollector.readIdBatchForFullFeed
(@NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> collectorProcessState, int batchSize, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) Returns aList
that provides a batch of IDs, sorted in ascending order.AbstractJsonArrayDataFeedCollector.readIdBatchForPartialFeed
(DataFeedCollectionRequest collectionRequest, @NonNull List<IncrementalDataFeedEntityUpdateRecord> updateRecords, @NonNull Map<String, Object> sharedProcessState, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) IncrementalDataFeedEntityUpdateRecord
can have multiple types of pointers to an entity (e.g.protected Stream<IncrementalDataFeedEntityUpdateRecord>
AbstractJsonArrayDataFeedCollector.readIncrementalUpdateRecords
(DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Uses of DataFeedCollectionRequest in com.broadleafcommerce.datafeed.service.collector.product
Modifier and TypeMethodDescriptionprotected void
PricingEntityContributor.assignPriceInfosToProducts
(@NonNull List<CollectedProduct> products, @NonNull Map<Object, Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>> targetsMap, @NonNull List<com.broadleafcommerce.pricing.client.domain.PriceInfo> priceInfos, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) boolean
InventoryEntityContributor.canHandle
(@NonNull Class<?> entityType, @NonNull DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) boolean
PricingEntityContributor.canHandle
(@NonNull Class<?> entityType, @NonNull DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) boolean
ProductDataFeedCollector.canHandle
(DataFeedCollectionRequest request) boolean
RatingsReviewsEntityContributor.canHandle
(@NonNull Class<?> entityType, @NonNull DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.pricing.client.domain.context.PriceContext
PricingEntityContributor.constructPriceContext
(@NonNull List<CollectedProduct> products, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Constructs aPriceContext
using theApplication
associated with theDataFeedProcessExecution.getApplicationId()
.protected com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext
PricingEntityContributor.constructPriceInfoContext
(@NonNull List<CollectedProduct> products, @NonNull Map<Object, Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>> targetsMap, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
InventoryEntityContributor.contribute
(@NonNull List<? extends CollectedEntity<?>> entities, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
PricingEntityContributor.contribute
(@NonNull List<? extends CollectedEntity<?>> entities, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
RatingsReviewsEntityContributor.contribute
(@NonNull List<? extends CollectedEntity<?>> entities, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) PricingEntityContributor.createTargetsMap
(@NonNull List<CollectedProduct> products, @NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ProductDataFeedCollector.postProcess
(@NonNull DataFeedCollectionRequest request, @NonNull List<E> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) Hook point to allow implementors to modify the Product list prior to returning to be written to a file.protected com.broadleafcommerce.data.tracking.core.tenant.domain.Application
PricingEntityContributor.readApplication
(@NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> processState, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ProductDataFeedCollector.readDataFeedRecords
(@NonNull DataFeedCollectionRequest request, @NonNull List<String> idBatch, @NonNull Map<String, Object> collectorProcessState, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) ProductDataFeedCollector.readIdBatchForFullFeed
(@NonNull DataFeedCollectionRequest request, @NonNull Map<String, Object> collectorProcessState, int batchSize, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) ProductDataFeedCollector.readIdBatchForPartialFeed
(DataFeedCollectionRequest collectionRequest, @NonNull List<IncrementalDataFeedEntityUpdateRecord> updateRecords, @NonNull Map<String, Object> sharedProcessState, com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo) Given a list ofIncrementalDataFeedEntityUpdateRecords
, we need to determine the Product IDs. -
Uses of DataFeedCollectionRequest in com.broadleafcommerce.datafeed.service.manager
Modifier and TypeMethodDescriptionprotected DataFeedCollectionRequest
DataFeedProcessExecutionManager.prepareCollectionRequest
(DataFeedProcessExecution execution, String tenantId) Modifier and TypeMethodDescriptionprotected Optional<DataFeedCollector>
DataFeedProcessExecutionManager.findDataFeedCollector
(DataFeedCollectionRequest request)