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
  • 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 interface CartActionAuditProvider
      Parameters:
      cartActionAudit - The cart action audit to create
      contextInfo - 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 interface CartActionAuditProvider
      Parameters:
      cartId - The id of the cart
      contextInfo - 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 interface CartActionAuditProvider
      Parameters:
      cartId - The id of the cart
      page - the page parameters for the results
      contextInfo - 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 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.

      Specified by:
      cloneCartActionAuditsToCart in interface CartActionAuditProvider
      Parameters:
      cloneCartActionAuditRequest - The CloneCartActionAuditRequest
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      The CloneCartActionAuditResponse regarding the result of the clone
    • getCartActionAuditUrlForCart

      protected String getCartActionAuditUrlForCart(@NonNull @NonNull String cartId)
    • getCartActionAuditUrlForCart

      protected String getCartActionAuditUrlForCart(@NonNull @NonNull String cartId, @Nullable org.springframework.data.domain.Pageable page)
    • getCartIdVariables

      protected Map<String,Object> getCartIdVariables(@NonNull @NonNull String cartId)
    • getServiceClient

      protected String getServiceClient()