Interface CartActionAuditService<P extends com.broadleafcommerce.cart.client.domain.CartActionAudit>

All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
All Known Implementing Classes:
DefaultCartActionAuditService

public interface CartActionAuditService<P extends com.broadleafcommerce.cart.client.domain.CartActionAudit> extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
Service API for CartActionAudits. Supported by CartActionAuditRepository.
Author:
Sunny Yu
  • Method Summary

    Modifier and Type
    Method
    Description
    cloneToCart(CloneCartActionAuditRequest cloneCartActionAuditRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Clones the CartActionAudits from one cart to another.
    readAllByIdIn(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all cart action audits for the given IDs.
    org.springframework.data.domain.Page<P>
    readByCartId(String cartId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all cart action audits for the given cart id.

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService

    create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
  • Method Details

    • readByCartId

      org.springframework.data.domain.Page<P> readByCartId(String cartId, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all cart action audits for the given cart id.
      Parameters:
      cartId - the ID of the cart whose audits need to be accessed
      contextInfo - Context information used to discriminate the correct version of an entity by context id when multiple versions may be available across sandboxes, catalogs and applications.
      page - the requested page of results from the database
      Returns:
      all cart action audits for the given cart id
    • readAllByIdIn

      List<P> readAllByIdIn(Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all cart action audits for the given IDs.
      Parameters:
      ids - the IDs of the cart action audits to retrieve
      contextInfo - Context information used to discriminate the correct version of an entity by context ID when multiple versions may be available across sandboxes, catalogs and applications.
      Returns:
      all cart action audits for the given IDs.
    • cloneToCart

      CloneCartActionAuditResponse cloneToCart(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