Class ExternalCustomerOrderInfoProvider<O extends CustomerOrderInfo>

java.lang.Object
com.broadleafcommerce.tabby.provider.external.AbstractExternalProvider
com.broadleafcommerce.tabby.provider.external.ExternalCustomerOrderInfoProvider<O>
All Implemented Interfaces:
CustomerOrderInfoProvider<O>

public class ExternalCustomerOrderInfoProvider<O extends CustomerOrderInfo> extends AbstractExternalProvider implements CustomerOrderInfoProvider<O>
The default implementation of CustomerOrderInfoProvider.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • ExternalCustomerOrderInfoProvider

      public ExternalCustomerOrderInfoProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ExternalOrderOperationProviderProperties properties, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils)
  • Method Details

    • readOrderInfoForCustomer

      public org.springframework.data.domain.Page<O> readOrderInfoForCustomer(String customerId, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CustomerOrderInfoProvider
      Reads the order history for the provided customer id.
      Specified by:
      readOrderInfoForCustomer in interface CustomerOrderInfoProvider<O extends CustomerOrderInfo>
      Parameters:
      customerId - the customer id to read the Orders
      page - the requested page of results from the database
      contextInfo - context information related to multitenancy
      Returns:
      the page of CustomerOrderInfo
    • readOrderInfoForAnonymousCustomer

      public org.springframework.data.domain.Page<O> readOrderInfoForAnonymousCustomer(String customerEmail, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CustomerOrderInfoProvider
      Reads the order history for an anonymous customer by email address.
      Specified by:
      readOrderInfoForAnonymousCustomer in interface CustomerOrderInfoProvider<O extends CustomerOrderInfo>
      Parameters:
      customerEmail - the customer email
      page - the requested page of results from the database
      contextInfo - context information related to multitenancy
      Returns:
      the page of CustomerOrderInfo
    • getBaseUri

      protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
    • getProperties

      protected ExternalOrderOperationProviderProperties getProperties()
    • getAuthenticationUtils

      protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()