Class ExternalRatingsReviewsProvider
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.provider.ExternalRatingsReviewsProvider
- All Implemented Interfaces:
RatingsReviewProvider
-
Constructor Summary
ConstructorDescriptionExternalRatingsReviewsProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, RatingsReviewsProviderProperties ratingsReviewsProviderProperties, ProviderUtil providerUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildReadRatingsUri
(Set<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected <T> reactor.core.publisher.Mono<T>
customizeReadRatingsForProductsMono
(reactor.core.publisher.Mono<T> mono) protected com.fasterxml.jackson.databind.ObjectMapper
protected ProviderUtil
protected RatingsReviewsProviderProperties
protected com.broadleafcommerce.common.extension.TypeFactory
protected org.springframework.web.reactive.function.client.WebClient
readRatings
(@NonNull Set<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads ratings for a Product or Variant.
-
Constructor Details
-
ExternalRatingsReviewsProvider
public ExternalRatingsReviewsProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, RatingsReviewsProviderProperties ratingsReviewsProviderProperties, ProviderUtil providerUtil)
-
-
Method Details
-
readRatings
public List<RatingSummary> readRatings(@NonNull @NonNull Set<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:RatingsReviewProvider
Reads ratings for a Product or Variant.- Specified by:
readRatings
in interfaceRatingsReviewProvider
- Returns:
-
buildReadRatingsUri
-
customizeReadRatingsForProductsMono
protected <T> reactor.core.publisher.Mono<T> customizeReadRatingsForProductsMono(reactor.core.publisher.Mono<T> mono) -
getWebClient
protected org.springframework.web.reactive.function.client.WebClient getWebClient() -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getRatingsReviewsProviderProperties
-
getProviderUtil
-