Class ApplicationOwnedMarketplaceApplicationCatalogEndpoint

java.lang.Object
com.broadleafcommerce.tenant.web.endpoint.ApplicationOwnedMarketplaceApplicationCatalogEndpoint

@FrameworkRestController @FrameworkMapping("/applications/{applicationId}/marketplace-application-catalogs") @DataRouteByExample(MarketplaceApplicationCatalog.class) public class ApplicationOwnedMarketplaceApplicationCatalogEndpoint extends Object
Similar to MarketplaceApplicationCatalogEndpoint, but limited to data associated with a particular Application.
  • Field Details

  • Constructor Details

  • Method Details

    • createMarketplaceApplicationCatalogForApp

      @Policy(permissionRoots="TENANT") @FrameworkPostMapping public MarketplaceApplicationCatalog createMarketplaceApplicationCatalogForApp(@PathVariable("applicationId") String applicationId, @RequestBody MarketplaceApplicationCatalog mktAppCatalog, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • replaceMarketplaceApplicationCatalogForApp

      @Policy(permissionRoots="TENANT") @FrameworkPutMapping("/{id}") public MarketplaceApplicationCatalog replaceMarketplaceApplicationCatalogForApp(@PathVariable("applicationId") String applicationId, @PathVariable("id") String mktAppCatalogId, @RequestBody MarketplaceApplicationCatalog mktAppCatalog, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • ensureApplicationExists

      protected void ensureApplicationExists(@NonNull @NonNull String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Ensures that the Application exists before we manage MarketplaceApplicationCatalogs in that application.
      Parameters:
      applicationId - ID of the application to check for existence
      contextInfo - context information around sandbox and multitenant state
    • ensureApplicationMatchesContextIfAppContext

      protected void ensureApplicationMatchesContextIfAppContext(@NonNull @NonNull String requestedApplicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      This validation ensures that if a request is made from an application context, the explicitly provided application ID must match it. This prevents application users from affecting data outside of their context.
      Parameters:
      requestedApplicationId - the explicitly provided application ID
      contextInfo - the context provided with the request
    • getApplicationCatalogService

      protected MarketplaceApplicationCatalogService<MarketplaceApplicationCatalog> getApplicationCatalogService()
    • getApplicationService

      protected ApplicationService<Application> getApplicationService()