Interface CartActionAuditOperationService<P extends com.broadleafcommerce.cart.client.domain.CartActionAudit>
- All Known Implementing Classes:
DefaultCartActionAuditOperationService
public interface CartActionAuditOperationService<P extends com.broadleafcommerce.cart.client.domain.CartActionAudit>
- Author:
- Julia Lopez-Pozas (jlopezpozas)
-
Method Summary
Modifier and TypeMethodDescriptioncloneCartActionAuditsToCart(CloneCartActionAuditRequest cloneCartActionAuditRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Clones theCartActionAuditsfrom one cart to another.org.springframework.data.domain.Page<P>readByCartId(String cartId, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves all cart action audits based on the given cart id.
-
Method Details
-
readByCartId
org.springframework.data.domain.Page<P> readByCartId(String cartId, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves all cart action audits based on the given cart id.- Parameters:
cartId- the id of the cart to find the action audits forcontextInfo- context information around sandbox and multitenant state.- Returns:
- the cart action audits based on the given cart id
-
cloneCartActionAuditsToCart
CloneCartActionAuditResponse cloneCartActionAuditsToCart(CloneCartActionAuditRequest cloneCartActionAuditRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Clones theCartActionAuditsfrom one cart to another.This is typically used for preserving the quote history when cloning an
DefaultQuoteStatuses.EXPIREDquote into a new one.- Parameters:
cloneCartActionAuditRequest- TheCloneCartActionAuditRequestcontextInfo- Context information around sandbox and multitenant state.- Returns:
- The
CloneCartActionAuditResponseregarding the result of the clone
-