Class RatingsReviewsEntityContributor
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.product.RatingsReviewsEntityContributor
- All Implemented Interfaces:
- CollectedEntityContributor,- org.springframework.core.Ordered
Contributes Pricing data to the Products that are collected for a Data Feed.
- Author:
- Kelly Tisdell (ktisdell)
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionRatingsReviewsEntityContributor(RatingsReviewProvider ratingsReviewProvider, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanHandle(@NonNull Class<?> entityType, @NonNull DataFeedCollectionRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Indicates if thisCollectedEntityContributorcan handle the given batch of collected entities.voidcontribute(@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 com.fasterxml.jackson.databind.ObjectMapperprotected RatingsReviewProviderprotected com.broadleafcommerce.common.extension.TypeFactoryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.datafeed.service.collector.CollectedEntityContributorgetOrder
- 
Constructor Details- 
RatingsReviewsEntityContributorpublic RatingsReviewsEntityContributor(RatingsReviewProvider ratingsReviewProvider, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) 
 
- 
- 
Method Details- 
canHandlepublic boolean canHandle(@NonNull @NonNull Class<?> entityType, @NonNull @NonNull DataFeedCollectionRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CollectedEntityContributorIndicates if thisCollectedEntityContributorcan handle the given batch of collected entities.- Specified by:
- canHandlein interface- CollectedEntityContributor
- Parameters:
- entityType- the class that represents the batch of items to receive contributions
- request- the original request
- contextInfo- the context info associated with this process
- Returns:
 
- 
contributepublic void contribute(@NonNull @NonNull List<? extends CollectedEntity<?>> entities, @NonNull @NonNull DataFeedCollectionRequest request, @NonNull @NonNull Map<String, Object> processState, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CollectedEntityContributorHook 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.- Specified by:
- contributein interface- CollectedEntityContributor
- Parameters:
- entities- the List of entities that may require contributions
- request- the original request
- processState- A Map of shared context for storing details of the collection process - expected to be thread-safe
- contextInfo- the context info associated with this process
 
- 
getRatingsReviewProvider
- 
getObjectMapperprotected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
- 
getTypeFactoryprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
 
-