Class ExternalOrderProvider<O extends com.broadleafcommerce.order.client.domain.Order>
java.lang.Object
com.broadleafcommerce.subscriptionoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.subscriptionoperation.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>
Default implementation of
OrderProvider.- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
FieldsFields inherited from class com.broadleafcommerce.subscriptionoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND, SANDBOX_AWARE_HEADER -
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 Stringorg.springframework.data.domain.Page<O>readAllByIds(Set<String> orderIds, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve allOrderswith the specified ids.Methods inherited from class com.broadleafcommerce.subscriptionoperation.service.provider.external.AbstractExternalProvider
addOffsetOrPageNumber, buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Field Details
-
RSQL_FILTER_PARAM
- See Also:
-
-
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
-
readAllByIds
public org.springframework.data.domain.Page<O> readAllByIds(Set<String> orderIds, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:OrderProviderRetrieve allOrderswith the specified ids.- Specified by:
readAllByIdsin interfaceOrderProvider<O extends com.broadleafcommerce.order.client.domain.Order>- Parameters:
orderIds- the order ids to readpage- information about which page of results to return from the databasecontextInfo- additional sandbox and multitenant info- Returns:
- a page of
Ordersfor the with the specified ids
-
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
-