Class PriceDataEndpoint
java.lang.Object
com.broadleafcommerce.pricing.web.endpoint.PriceDataEndpoint
@FrameworkRestController
@FrameworkMapping("/price-data")
@DataRouteByExample(PriceData.class)
public class PriceDataEndpoint
extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreatePriceData
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, PriceData req) void
deletePriceData
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id) readPriceData
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id) org.springframework.data.domain.Page<PriceData>
readPriceDataByPriceListAndTargets
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String priceListId, String targetType, List<String> targetIds, org.springframework.data.domain.Pageable page) Deprecated, for removal: This API element is subject to removal in a future version.org.springframework.data.domain.Page<PriceData>
readPriceDataByPriceListAndTargets
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String priceListId, String targetType, List<String> targetIds, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) replacePriceData
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceData req) updatePriceData
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, PriceData req)
-
Field Details
-
BASE_URI
- See Also:
-
priceDataService
-
-
Constructor Details
-
PriceDataEndpoint
-
-
Method Details
-
readPriceDataByPriceListAndTargets
@Deprecated(since="1.7.2", forRemoval=true) public org.springframework.data.domain.Page<PriceData> readPriceDataByPriceListAndTargets(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam(name="priceListId",required=false) String priceListId, @RequestParam(name="targetType",required=false) String targetType, @RequestParam(name="targetId",required=false) List<String> targetIds, @PageableDefault(size=50) org.springframework.data.domain.Pageable page) Deprecated, for removal: This API element is subject to removal in a future version.UsereadPriceDataByPriceListAndTargets(HttpServletRequest, ContextInfo, String, String, List, Pageable, Node)
. PriceData need the ability to filter for the frontend, the old endpoints did not take in filter parameters. -
readPriceDataByPriceListAndTargets
@FrameworkGetMapping @Policy(permissionRoots="PRICE_LIST") public org.springframework.data.domain.Page<PriceData> readPriceDataByPriceListAndTargets(jakarta.servlet.http.HttpServletRequest request, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam(name="priceListId",required=false) String priceListId, @RequestParam(name="targetType",required=false) String targetType, @RequestParam(name="targetId",required=false) List<String> targetIds, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) -
readPriceData
-
updatePriceData
@FrameworkPatchMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="PRICE_LIST") public PriceData updatePriceData(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @RequestBody PriceData req) -
replacePriceData
@FrameworkPutMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="PRICE_LIST") public PriceData replacePriceData(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @RequestBody PriceData req) -
createPriceData
-
deletePriceData
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="PRICE_LIST") public void deletePriceData(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id)
-
readPriceDataByPriceListAndTargets(HttpServletRequest, ContextInfo, String, String, List, Pageable, Node)
.