Class ExternalCartItemProductMappingProvider
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.cartoperation.service.provider.external.ExternalCartItemProductMappingProvider
- All Implemented Interfaces:
CartItemProductMappingProvider
public class ExternalCartItemProductMappingProvider
extends AbstractExternalProvider
implements CartItemProductMappingProvider
This particular implementation of
CatalogProvider
is designed to interact with a provider
that will provide fully hydrated catalog entities, i.e., there is no need for additional calls to
get a product's variants or item choices.- Author:
- Chad Harchar (charchar), Nathan Moore (nathandmoore)
-
Field Summary
Fields inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND
-
Constructor Summary
ConstructorDescriptionExternalCartItemProductMappingProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCatalogProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
retrieveCartItemProductMappings
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve a list of cart item to product mappingsMethods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Constructor Details
-
ExternalCartItemProductMappingProvider
public ExternalCartItemProductMappingProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCatalogProperties properties)
-
-
Method Details
-
retrieveCartItemProductMappings
public List<CartItemMappingProperties.FieldMapping> retrieveCartItemProductMappings(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CartItemProductMappingProvider
Retrieve a list of cart item to product mappings- Specified by:
retrieveCartItemProductMappings
in interfaceCartItemProductMappingProvider
- Parameters:
contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The list of FieldMapping
-
getRetrieveItemProductMappingsUrl
-
getServiceClient
-