Class ExternalCustomerProvider
java.lang.Object
com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.notification.service.provider.external.ExternalCustomerProvider
- All Implemented Interfaces:
CustomerProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
RSQL_FILTER_PARAM
-
Constructor Summary
ConstructorsConstructorDescriptionExternalCustomerProvider
(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<Customer>
readCustomerById
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer by IDreadCustomers
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all customersMethods inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, pageableToParams
-
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
-
readCustomers
public reactor.core.publisher.Mono<List<Customer>> readCustomers(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomerProvider
Read all customers- Specified by:
readCustomers
in interfaceCustomerProvider
- Parameters:
contextInfo
- The context- Returns:
- The customer, if found
-
readCustomerById
public reactor.core.publisher.Mono<Customer> readCustomerById(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomerProvider
Read a customer by ID- Specified by:
readCustomerById
in interfaceCustomerProvider
- Parameters:
customerId
- The customer IDcontextInfo
- The context- Returns:
- The customer, if found
-
getServiceClient
-
getProperties
-