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) 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) -
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()
-