Interface CartActionAuditProvider

All Known Implementing Classes:
ExternalCartActionAuditProvider

public interface CartActionAuditProvider
Provider for interfacing with CartActionAudits.
  • 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.
    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.
    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 pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all cart action audits for a given cart id.
  • Method Details

    • createCartActionAudit

      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)
      Create a new cart action audit.
      Parameters:
      cartActionAudit - The cart action audit to create
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      The created audit.
    • retrieveCartActionAuditsByCartId

      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)
      Find all cart action audits for a given cart id.
      Parameters:
      cartId - The id of the cart
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      The relevant cart action audits.
    • retrieveCartActionAuditsByCartId

      org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit> retrieveCartActionAuditsByCartId(@NonNull @NonNull String cartId, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all cart action audits for a given cart id.
      Parameters:
      cartId - The id of the cart
      pageable - the page parameters for the results
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      The relevant cart action audits.
    • 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