Class ExternalCartActionAuditProvider
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.cartoperation.service.provider.external.ExternalCartActionAuditProvider
- All Implemented Interfaces:
CartActionAuditProvider
public class ExternalCartActionAuditProvider
extends AbstractExternalProvider
implements CartActionAuditProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND
-
Constructor Summary
ConstructorsConstructorDescriptionExternalCartActionAuditProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCartProperties properties) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.CartActionAudit
createCartActionAudit
(@NonNull com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAudit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a new cart action audit.protected String
getCartActionAuditUrlForCart
(@NonNull String cartId) getCartIdVariables
(@NonNull String cartId) protected String
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit>
retrieveCartActionAuditsByCartId
(@NonNull String cartId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all cart action audits for a given cart id.Methods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Constructor Details
-
ExternalCartActionAuditProvider
public ExternalCartActionAuditProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCartProperties properties)
-
-
Method Details
-
createCartActionAudit
public com.broadleafcommerce.cart.client.domain.CartActionAudit createCartActionAudit(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.CartActionAudit cartActionAudit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CartActionAuditProvider
Create a new cart action audit.- Specified by:
createCartActionAudit
in interfaceCartActionAuditProvider
- Parameters:
cartActionAudit
- The cart action audit to createcontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The created audit.
-
retrieveCartActionAuditsByCartId
public org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit> retrieveCartActionAuditsByCartId(@NonNull @NonNull String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CartActionAuditProvider
Find all cart action audits for a given cart id.- Specified by:
retrieveCartActionAuditsByCartId
in interfaceCartActionAuditProvider
- Parameters:
cartId
- The id of the cartcontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The relevant cart action audits.
-
getCartActionAuditUrlForCart
-
getCartIdVariables
-
getServiceClient
-