Class ExternalRatingsReviewsProvider

java.lang.Object
com.broadleafcommerce.datafeed.service.collector.provider.ExternalRatingsReviewsProvider
All Implemented Interfaces:
RatingsReviewProvider

public class ExternalRatingsReviewsProvider extends Object implements RatingsReviewProvider
  • 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 interface RatingsReviewProvider
      Returns:
    • buildReadRatingsUri

      protected String buildReadRatingsUri(Set<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • 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

      protected RatingsReviewsProviderProperties getRatingsReviewsProviderProperties()
    • getProviderUtil

      protected ProviderUtil getProviderUtil()