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 Type
    Method
    Description
    cloneCartActionAuditsToCart(CloneCartActionAuditRequest cloneCartActionAuditRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Clones the CartActionAudits from 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 for
      contextInfo - 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 the CartActionAudits from one cart to another.

      This is typically used for preserving the quote history when cloning an DefaultQuoteStatuses.EXPIRED quote into a new one.

      Parameters:
      cloneCartActionAuditRequest - The CloneCartActionAuditRequest
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      The CloneCartActionAuditResponse regarding the result of the clone