Class AbstractCockpitPluginResource

java.lang.Object
org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource<CockpitPlugin>
org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginResource
Direct Known Subclasses:
AbstractPluginResource

public class AbstractCockpitPluginResource extends AbstractAppPluginResource<CockpitPlugin>
Base class for implementing a plugin REST resource.
Author:
Daniel Meyer
  • Constructor Details

    • AbstractCockpitPluginResource

      public AbstractCockpitPluginResource(String engineName)
  • Method Details

    • getCommandExecutor

      protected CommandExecutor getCommandExecutor()
      Return a CommandExecutor for the current engine to execute plugin commands.
      Returns:
    • getQueryService

      protected QueryService getQueryService()
      Return a QueryService for the current engine to execute queries against the engine datbase.
      Returns:
    • isAuthorizationEnabled

      protected boolean isAuthorizationEnabled()
      Return true if authorization is enabled.
    • isTenantCheckEnabled

      protected boolean isTenantCheckEnabled()
      Return true if tenant check is enabled.
    • isCamundaAdmin

      protected boolean isCamundaAdmin(Authentication authentication)
      Return true if the given authentication is part of the admin groups or admin users
    • getCurrentAuthentication

      protected Authentication getCurrentAuthentication()
      Return the current authentication.
    • configureAuthorizationCheck

      protected void configureAuthorizationCheck(QueryParameters query)
      Configure the authorization check for the given QueryParameters.
    • configureTenantCheck

      protected void configureTenantCheck(QueryParameters query)
      Configure the tenant check for the given QueryParameters.
    • addPermissionCheck

      protected void addPermissionCheck(QueryParameters query, Resource resource, String queryParam, Permission permission)
      Add a new PermissionCheck with the given values.
    • isPermissionDisabled

      protected boolean isPermissionDisabled(Permission permission)