Class ExternalOrderProvider<O extends com.broadleafcommerce.order.client.domain.Order>

java.lang.Object
com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.notification.service.provider.external.ExternalOrderProvider<O>
All Implemented Interfaces:
OrderProvider<O>

public class ExternalOrderProvider<O extends com.broadleafcommerce.order.client.domain.Order> extends AbstractExternalProvider implements OrderProvider<O>
  • Constructor Details

    • ExternalOrderProvider

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

    • readByOrderId

      public O readByOrderId(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: OrderProvider
      Retrieve the Order with the given ID.
      Specified by:
      readByOrderId in interface OrderProvider<O extends com.broadleafcommerce.order.client.domain.Order>
      Parameters:
      orderId - the ID of the order to retrieve
      contextInfo - context information around sandbox and multitenant state.
      Returns:
      the order with the given ID
    • getBaseUri

      protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
      Gets the base URI common to all requests this provider will make.
      Returns:
      a URI components builder with the base URI set up
    • getServiceClient

      protected String getServiceClient()
    • getProperties

      protected ExternalOrderProviderProperties getProperties()