Class FulfillmentCalculatorConfigEndpoint
java.lang.Object
com.broadleafcommerce.fulfillment.web.endpoint.FulfillmentCalculatorConfigEndpoint
@FrameworkRestController
@FrameworkMapping("/calculator-configs")
@DataRouteByExample(FulfillmentCalculatorConfig.class)
public class FulfillmentCalculatorConfigEndpoint
extends Object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFulfillmentCalculatorConfigEndpoint
(FulfillmentCalculatorConfigService<FulfillmentCalculatorConfig> fulfillmentCalculatorConfigService) -
Method Summary
Modifier and TypeMethodDescriptionaddCalculatorConfig
(FulfillmentCalculatorConfig calculatorConfig, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
deleteCalculatorConfig
(String calculatorConfigId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllCalculatorConfigs
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<FulfillmentCalculatorConfig>
readAllCalculatorConfigsByPage
(cz.jirutka.rsql.parser.ast.Node filters, String query, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) readSingleConfig
(String calculatorConfigId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) updateCalculatorConfig
(String calculatorConfigId, FulfillmentCalculatorConfig calculatorConfig, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
FulfillmentCalculatorConfigEndpoint
public FulfillmentCalculatorConfigEndpoint(FulfillmentCalculatorConfigService<FulfillmentCalculatorConfig> fulfillmentCalculatorConfigService)
-
-
Method Details
-
readAllCalculatorConfigs
@FrameworkGetMapping @Policy(permissionRoots="FULFILLMENT", operationTypes=READ) public List<FulfillmentCalculatorConfig> readAllCalculatorConfigs(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllCalculatorConfigsByPage
@FrameworkGetMapping("/page") @Policy(permissionRoots="FULFILLMENT", operationTypes=READ) public org.springframework.data.domain.Page<FulfillmentCalculatorConfig> readAllCalculatorConfigsByPage(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @RequestParam(value="q",required=false) String query, @PageableDefault(size=50,sort="name",direction=ASC) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
addCalculatorConfig
@FrameworkPostMapping @Policy(permissionRoots="FULFILLMENT", operationTypes=CREATE) public FulfillmentCalculatorConfig addCalculatorConfig(@RequestBody FulfillmentCalculatorConfig calculatorConfig, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readSingleConfig
@FrameworkGetMapping("/{calculatorConfigId}") @Policy(permissionRoots="FULFILLMENT", operationTypes=READ) public FulfillmentCalculatorConfig readSingleConfig(@PathVariable("calculatorConfigId") String calculatorConfigId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateCalculatorConfig
@FrameworkPutMapping("/{calculatorConfigId}") @Policy(permissionRoots="FULFILLMENT", operationTypes=UPDATE) public FulfillmentCalculatorConfig updateCalculatorConfig(@PathVariable("calculatorConfigId") String calculatorConfigId, @RequestBody FulfillmentCalculatorConfig calculatorConfig, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
deleteCalculatorConfig
@FrameworkDeleteMapping("/{calculatorConfigId}") @Policy(permissionRoots="FULFILLMENT", operationTypes=DELETE) public void deleteCalculatorConfig(@PathVariable("calculatorConfigId") String calculatorConfigId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getFulfillmentCalculatorConfigService
protected FulfillmentCalculatorConfigService<FulfillmentCalculatorConfig> getFulfillmentCalculatorConfigService()
-