Class PriceDataEndpoint

java.lang.Object
com.broadleafcommerce.pricing.web.endpoint.PriceDataEndpoint

@FrameworkRestController @FrameworkMapping("/price-data") @DataRouteByExample(PriceData.class) public class PriceDataEndpoint extends Object
  • Field Details

  • Constructor Details

  • 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.
      Use readPriceDataByPriceListAndTargets(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

      @FrameworkGetMapping("/{id}") @Policy(permissionRoots="PRICE_LIST") public PriceData readPriceData(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id)
    • 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

      @FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="PRICE_LIST") public PriceData createPriceData(jakarta.servlet.http.HttpServletRequest request, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody PriceData req)
    • 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)