@FrameworkMapping(value="/item-list-ops") @FrameworkRestController public class ItemListOperationEndpoint<L extends com.broadleafcommerce.cart.client.domain.ItemList> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URI |
static String |
BULK_LIST_URI |
| Constructor and Description |
|---|
ItemListOperationEndpoint(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authUtils,
ItemListManagementService<L> listService,
ItemListAddToCartService addToCartService) |
| Modifier and Type | Method and Description |
|---|---|
ItemListAddToCartResponse |
addItemListsToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
AddItemListToCartRequest addItemListToCartRequest,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
L |
createItemList(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
L createRequest) |
void |
deleteItemList(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef) |
DeleteItemListResponse |
deleteItemLists(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
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. |
DeleteItemListResponse |
deleteItemListsInBulk(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
Set<String> listIds) |
protected ItemListAddToCartService |
getAddToCartService() |
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils |
getAuthUtils() |
L |
getItemListById(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef) |
org.springframework.data.domain.Page<L> |
getItemListPage(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable) |
protected ItemListManagementService<L> |
getListService() |
L |
replaceItemList(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
L replaceRequest) |
void |
shareItemList(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
ShareItemListRequest shareRequest) |
L |
updateItemList(com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
L updateRequest) |
public static final String BASE_URI
public static final String BULK_LIST_URI
public ItemListOperationEndpoint(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authUtils,
ItemListManagementService<L> listService,
ItemListAddToCartService addToCartService)
@FrameworkGetMapping public org.springframework.data.domain.Page<L> getItemListPage(@ContextOperation(value=READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.cart.client.domain.CustomerRef customerRef, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(value=50) org.springframework.data.domain.Pageable pageable)
@FrameworkPostMapping(value="/add-to-cart",
consumes="application/json")
@Deprecated
public ItemListAddToCartResponse addItemListsToCart(@Nullable
com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
@RequestBody
AddItemListToCartRequest addItemListToCartRequest,
@ContextOperation
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkGetMapping(value="/{listId}")
public L getItemListById(@ContextOperation(value=READ)
com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
@PathVariable
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef)
@FrameworkPostMapping public L createItemList(@ContextOperation(value=CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.cart.client.domain.CustomerRef customerRef, @Validated @RequestBody L createRequest)
@FrameworkPutMapping(value="/{listId}")
public L replaceItemList(@ContextOperation(value=UPDATE)
com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
@PathVariable
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
@Validated @RequestBody
L replaceRequest)
@FrameworkPatchMapping(value="/{listId}")
public L updateItemList(@ContextOperation(value=UPDATE)
com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
@PathVariable
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
@Validated @RequestBody
L updateRequest)
@FrameworkDeleteMapping(value="/{listId}")
public void deleteItemList(@ContextOperation(value=DELETE)
com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
@PathVariable
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef)
@Deprecated @FrameworkDeleteMapping(value="/bulk-item-lists") public DeleteItemListResponse deleteItemLists(@ContextOperation(value=DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.cart.client.domain.CustomerRef customerRef, @RequestParam Set<String> listIds)
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.@FrameworkPostMapping(value="/bulk-item-lists/delete",
consumes="application/json")
public DeleteItemListResponse deleteItemListsInBulk(@ContextOperation(value=DELETE)
com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
@RequestBody
Set<String> listIds)
@FrameworkPostMapping(value="/{listId}/share")
public void shareItemList(@ContextOperation(value=UPDATE)
com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
@PathVariable
String listId,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
@Validated @RequestBody
ShareItemListRequest shareRequest)
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthUtils()
protected ItemListManagementService<L> getListService()
protected ItemListAddToCartService getAddToCartService()
Copyright © 2021. All rights reserved.