Interface CustomerProvider
- All Known Implementing Classes:
ExternalCustomerProvider
public interface CustomerProvider
Provider for interfacing with operations around Customer entities. Typically utilizes
WebClient
to make requests to an external REST API.- Author:
- Susana Cruz (susanaccruz)
-
Method Summary
Modifier and TypeMethodDescriptionreactor.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 customers
-
Method Details
-
readCustomers
reactor.core.publisher.Mono<List<Customer>> readCustomers(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all customers- Parameters:
contextInfo
- The context- Returns:
- The customer, if found
-
readCustomerById
reactor.core.publisher.Mono<Customer> readCustomerById(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer by ID- Parameters:
customerId
- The customer IDcontextInfo
- The context- Returns:
- The customer, if found
-