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.
    • getCartActionAuditUrlForCart

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

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

      protected String getServiceClient()