Class ExternalOrderFulfillmentProvider<OF extends com.broadleafcommerce.order.client.domain.OrderFulfillment>
java.lang.Object
com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.notification.service.provider.external.ExternalOrderFulfillmentProvider<OF>
- All Implemented Interfaces:
OrderFulfillmentProvider<OF>
public class ExternalOrderFulfillmentProvider<OF extends com.broadleafcommerce.order.client.domain.OrderFulfillment>
extends AbstractExternalProvider
implements OrderFulfillmentProvider<OF>
-
Field Summary
Fields inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
RSQL_FILTER_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionExternalOrderFulfillmentProvider(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 StringreadByFulfillmentId(@NonNull String fulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve theOrderFulfillmentwith the given ID.Methods inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, pageableToParams
-
Constructor Details
-
ExternalOrderFulfillmentProvider
public ExternalOrderFulfillmentProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalOrderProviderProperties properties)
-
-
Method Details
-
readByFulfillmentId
public OF readByFulfillmentId(@NonNull @NonNull String fulfillmentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:OrderFulfillmentProviderRetrieve theOrderFulfillmentwith the given ID.- Specified by:
readByFulfillmentIdin interfaceOrderFulfillmentProvider<OF extends com.broadleafcommerce.order.client.domain.OrderFulfillment>- Parameters:
fulfillmentId- the ID of the fulfillment to retrievecontextInfo- context information around sandbox and multitenant state.- Returns:
- the fulfillment 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
-