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 SummaryConstructorsConstructorDescriptionExternalCustomerOrderInfoProvider(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 SummaryModifier and TypeMethodDescriptionprotected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtilsprotected org.springframework.web.util.UriComponentsBuilderprotected ExternalOrderOperationProviderPropertiesorg.springframework.data.domain.Page<O>readOrderInfoForAnonymousCustomer(String customerEmail, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the order history for an anonymous customer by email address.org.springframework.data.domain.Page<O>readOrderInfoForCustomer(String customerId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the order history for the provided customer id.Methods inherited from class com.broadleafcommerce.tabby.provider.external.AbstractExternalProviderexecuteRequest, getHeaders, getObjectMapper, getWebClient, orderToParamValue, pageableToParams, uriVars
- 
Constructor Details- 
ExternalCustomerOrderInfoProviderpublic 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- 
readOrderInfoForCustomerpublic 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:CustomerOrderInfoProviderReads the order history for the provided customer id.- Specified by:
- readOrderInfoForCustomerin 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
 
- 
readOrderInfoForAnonymousCustomerpublic 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:CustomerOrderInfoProviderReads the order history for an anonymous customer by email address.- Specified by:
- readOrderInfoForAnonymousCustomerin 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
 
- 
getBaseUriprotected org.springframework.web.util.UriComponentsBuilder getBaseUri()
- 
getProperties
- 
getAuthenticationUtilsprotected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
 
-