Class ExternalCustomerProvider
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.cartoperation.service.provider.external.ExternalCustomerProvider
- All Implemented Interfaces:
CustomerProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND
-
Constructor Summary
ConstructorDescriptionExternalCustomerProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalCustomerProperties
protected String
reactor.core.publisher.Mono<Account>
readAccountById
(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer account by the supplied IDreactor.core.publisher.Mono<Customer>
readByCustomerId
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer by IDMethods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Constructor Details
-
ExternalCustomerProvider
public ExternalCustomerProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCustomerProperties properties)
-
-
Method Details
-
readAccountById
public reactor.core.publisher.Mono<Account> readAccountById(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomerProvider
Read a customer account by the supplied ID- Specified by:
readAccountById
in interfaceCustomerProvider
- Parameters:
accountId
- The account IDcontextInfo
- The context- Returns:
- An account Mono
-
readByCustomerId
public reactor.core.publisher.Mono<Customer> readByCustomerId(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomerProvider
Read a customer by ID- Specified by:
readByCustomerId
in interfaceCustomerProvider
- Parameters:
customerId
- The customer IDcontextInfo
- The context- Returns:
- The customer, if found
-
getServiceClient
-
getProperties
-