Class CartActionAuditOperationEndpoint

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.CartActionAuditOperationEndpoint

@FrameworkRestController @FrameworkMapping("/cart-action-audit/{cartId}") public class CartActionAuditOperationEndpoint extends Object
Endpoint for CartActionAudit management.
Author:
Julia Lopez-Pozas
  • Field Details

  • Constructor Details

  • Method Details

    • readByCartId

      @FrameworkGetMapping public org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit> readByCartId(@PageableDefault(size=50) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @PathVariable String cartId)
    • resolveCart

      protected com.broadleafcommerce.cart.client.domain.Cart resolveCart(@NonNull @NonNull String cartId, @Nullable com.broadleafcommerce.order.common.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Resolves Cart by the given cart id.

      This is used to ensure that the Cart that the CartActionAudit is being added for is owned by the given CustomerRef.

    • cartNotFoundMessage

      protected String cartNotFoundMessage(String cartId)
    • getCartResolverService

      protected CartResolverService getCartResolverService()
    • getCartActionAuditOperationService

      protected CartActionAuditOperationService<com.broadleafcommerce.cart.client.domain.CartActionAudit> getCartActionAuditOperationService()