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 ofCatalogProvider
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
Constructors Constructor Description ExternalCartItemProductMappingProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCatalogProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getRetrieveItemProductMappingsUrl()
protected String
getServiceClient()
List<CartItemMappingProperties.FieldMapping>
retrieveCartItemProductMappings(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve a list of cart item to product mappings-
Methods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
-
-
-
Constructor Detail
-
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 Detail
-
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
protected String getRetrieveItemProductMappingsUrl()
-
getServiceClient
protected String getServiceClient()
-
-