Class FulfillmentPricingConfigEndpoint
java.lang.Object
com.broadleafcommerce.fulfillment.web.endpoint.FulfillmentPricingConfigEndpoint
@FrameworkRestController
@FrameworkMapping("/pricing-configs")
@DataRouteByExample(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig.class)
public class FulfillmentPricingConfigEndpoint
extends Object
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFulfillmentPricingConfigEndpoint(FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> fulfillmentPricingConfigService) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfigcreateOrUpdateConfig(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig pricingConfig, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Endpoint to handle both creation and save, since there is no explicit create function available in the admin.voiddeleteFulfillmentPricingConfig(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfiggetConfigForContext(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the singleFulfillmentPricingConfigfor the current context.protected FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig>
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
FulfillmentPricingConfigEndpoint
public FulfillmentPricingConfigEndpoint(FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> fulfillmentPricingConfigService)
-
-
Method Details
-
getConfigForContext
@FrameworkGetMapping @Policy(permissionRoots="FULFILLMENT", operationTypes=READ) public com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig getConfigForContext(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the singleFulfillmentPricingConfigfor the current context.- Parameters:
contextInfo- The context of the request.- Returns:
- The
FulfillmentPricingConfigfor the current context.
-
createOrUpdateConfig
@FrameworkPutMapping @Policy(permissionRoots="FULFILLMENT", operationTypes=UPDATE) public com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig createOrUpdateConfig(@RequestBody com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig pricingConfig, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Endpoint to handle both creation and save, since there is no explicit create function available in the admin.- Parameters:
pricingConfig- TheFulfillmentPricingConfigto save.contextInfo- The context of the request.- Returns:
- The persisted
FulfillmentPricingConfig.
-
deleteFulfillmentPricingConfig
@FrameworkDeleteMapping @Policy(permissionRoots="FULFILLMENT", operationTypes=DELETE) public void deleteFulfillmentPricingConfig(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getFulfillmentPricingConfigService
protected FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> getFulfillmentPricingConfigService()
-