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 Summary
-
Constructor Summary
ConstructorDescriptionCartActionAuditOperationEndpoint
(CartResolverService cartResolverService, CartActionAuditOperationService<com.broadleafcommerce.cart.client.domain.CartActionAudit> cartActionAuditOperationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
cartNotFoundMessage
(String cartId) protected CartActionAuditOperationService<com.broadleafcommerce.cart.client.domain.CartActionAudit>
protected CartResolverService
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.CartActionAudit>
readByCartId
(org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, String cartId) protected com.broadleafcommerce.cart.client.domain.Cart
resolveCart
(@NonNull String cartId, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ResolvesCart
by the given cart id.
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
CartActionAuditOperationEndpoint
public CartActionAuditOperationEndpoint(CartResolverService cartResolverService, CartActionAuditOperationService<com.broadleafcommerce.cart.client.domain.CartActionAudit> cartActionAuditOperationService)
-
-
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) ResolvesCart
by the given cart id.This is used to ensure that the
Cart
that theCartActionAudit
is being added for is owned by the givenCustomerRef
. -
cartNotFoundMessage
-
getCartResolverService
-
getCartActionAuditOperationService
protected CartActionAuditOperationService<com.broadleafcommerce.cart.client.domain.CartActionAudit> getCartActionAuditOperationService()
-