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
ConstructorDescriptionExternalCartActionAuditProvider
(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 TypeMethodDescriptioncloneCartActionAuditsToCart
(@NonNull CloneCartActionAuditRequest cloneCartActionAuditRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Clones theCartActionAudits
from one cart to another.com.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) protected String
getCartActionAuditUrlForCart
(@NonNull String cartId, org.springframework.data.domain.Pageable page) 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.org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit>
retrieveCartActionAuditsByCartId
(@NonNull String cartId, org.springframework.data.domain.Pageable page, 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.
-
retrieveCartActionAuditsByCartId
public org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit> retrieveCartActionAuditsByCartId(@NonNull @NonNull String cartId, @Nullable org.springframework.data.domain.Pageable page, @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 cartpage
- the page parameters for the resultscontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The relevant cart action audits.
-
cloneCartActionAuditsToCart
public CloneCartActionAuditResponse cloneCartActionAuditsToCart(@NonNull @NonNull CloneCartActionAuditRequest cloneCartActionAuditRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CartActionAuditProvider
Clones theCartActionAudits
from one cart to another.This is typically used for preserving the quote history when cloning an
DefaultQuoteStatuses.EXPIRED
quote into a new one.- Specified by:
cloneCartActionAuditsToCart
in interfaceCartActionAuditProvider
- Parameters:
cloneCartActionAuditRequest
- TheCloneCartActionAuditRequest
contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The
CloneCartActionAuditResponse
regarding the result of the clone
-
getCartActionAuditUrlForCart
-
getCartActionAuditUrlForCart
-
getCartIdVariables
-
getServiceClient
-