Class ItemListOperationEndpoint<L extends com.broadleafcommerce.cart.client.domain.ItemList>

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.ItemListOperationEndpoint<L>

@FrameworkMapping("/item-list-ops") @FrameworkRestController @DataRouteByKey("cartoperation") public class ItemListOperationEndpoint<L extends com.broadleafcommerce.cart.client.domain.ItemList> extends Object
Endpoint for management of item list(s).
Author:
Jacob Mitash
  • Field Details

  • Constructor Details

  • Method Details

    • getItemListPage

      @FrameworkGetMapping public org.springframework.data.domain.Page<L> getItemListPage(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(50) org.springframework.data.domain.Pageable pageable)
    • addItemListsToCart

      @FrameworkPostMapping(value="/add-to-cart", consumes="application/json") @Deprecated public ItemListAddToCartResponse addItemListsToCart(@Nullable com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestBody AddItemListToCartRequest addItemListToCartRequest, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated.
    • getItemListById

      @FrameworkGetMapping("/{listId}") public L getItemListById(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef)
    • createItemList

      @FrameworkPostMapping public L createItemList(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Validated @RequestBody L createRequest)
    • replaceItemList

      @FrameworkPutMapping("/{listId}") public L replaceItemList(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Validated @RequestBody L replaceRequest)
    • updateItemList

      @FrameworkPatchMapping("/{listId}") public L updateItemList(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Validated @RequestBody L updateRequest)
    • deleteItemList

      @FrameworkDeleteMapping("/{listId}") public void deleteItemList(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef)
    • deleteItemLists

      @Deprecated @FrameworkDeleteMapping("/bulk-item-lists") public DeleteItemListResponse deleteItemLists(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestParam Set<String> listIds)
      Deprecated.
      Use deleteItemListsInBulk(ContextInfo, CustomerRef, Set). This will allow much longer lists of IDs without worrying about whether the URL is too long and corrects the HTTP method semantics by using POST since we're not actually deleting a resource at the URL.
    • updateItemListName

      @FrameworkPatchMapping("/item-list-ops/{listId}/name") public L updateItemListName(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Validated @RequestBody L request)
    • updateItemListAttributes

      @FrameworkPatchMapping("/item-list-ops/{listId}/attributes") public L updateItemListAttributes(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Validated @RequestBody L request)
    • deleteItemListsInBulk

      @FrameworkPostMapping(value="/bulk-item-lists/delete", consumes="application/json") public DeleteItemListResponse deleteItemListsInBulk(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @RequestBody Set<String> listIds)
    • shareItemList

      @FrameworkPostMapping("/{listId}/share") public void shareItemList(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable String listId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Validated @RequestBody ShareItemListRequest shareRequest)
    • getAuthUtils

      protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthUtils()
    • getListService

      protected ItemListManagementService<L> getListService()
    • getAddToCartService

      protected ItemListAddToCartService getAddToCartService()