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 Details

  • 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 single FulfillmentPricingConfig 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 - The FulfillmentPricingConfig 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()