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>
-
Field Summary
Fields inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
RSQL_FILTER_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionExternalOrderProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalOrderProviderProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.util.UriComponentsBuilderGets the base URI common to all requests this provider will make.protected ExternalOrderProviderPropertiesprotected StringreadByOrderId(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve theOrderwith the given ID.Methods inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, pageableToParams
-
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:OrderProviderRetrieve theOrderwith the given ID.- Specified by:
readByOrderIdin interfaceOrderProvider<O extends com.broadleafcommerce.order.client.domain.Order>- Parameters:
orderId- the ID of the order to retrievecontextInfo- 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
-
getProperties
-