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
-
Constructor Summary
ConstructorDescriptionFulfillmentPricingConfigEndpoint
(FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> fulfillmentPricingConfigService) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig
createOrUpdateConfig
(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.void
deleteFulfillmentPricingConfig
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig
getConfigForContext
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the singleFulfillmentPricingConfig
for 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 singleFulfillmentPricingConfig
for the current context.- Parameters:
contextInfo
- The context of the request.- Returns:
- The
FulfillmentPricingConfig
for 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
- TheFulfillmentPricingConfig
to 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()
-