Class ExternalCustomerProvider

java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.cartoperation.service.provider.external.ExternalCustomerProvider
All Implemented Interfaces:
CustomerProvider

public class ExternalCustomerProvider extends AbstractExternalProvider implements CustomerProvider
  • Constructor Details

    • ExternalCustomerProvider

      public ExternalCustomerProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties properties)
  • Method Details

    • readAccountById

      public reactor.core.publisher.Mono<Account> readAccountById(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CustomerProvider
      Read a customer account by the supplied ID
      Specified by:
      readAccountById in interface CustomerProvider
      Parameters:
      accountId - The account ID
      contextInfo - The context
      Returns:
      An account Mono
    • readByCustomerId

      public reactor.core.publisher.Mono<Customer> readByCustomerId(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CustomerProvider
      Read a customer by ID
      Specified by:
      readByCustomerId in interface CustomerProvider
      Parameters:
      customerId - The customer ID
      contextInfo - The context
      Returns:
      The customer, if found
    • getServiceClient

      protected String getServiceClient()
    • getProperties

      protected ExternalCustomerProperties getProperties()