public class AbstractCockpitPluginResource extends AbstractAppPluginResource<CockpitPlugin>
engineName, runtimeDelegate| Constructor and Description | 
|---|
| AbstractCockpitPluginResource(String engineName) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addPermissionCheck(QueryParameters<?> query,
                  Resource resource,
                  String queryParam,
                  Permission permission)Add a new  PermissionCheckwith the given values. | 
| protected void | configureAuthorizationCheck(QueryParameters<?> query)Configure the authorization check for the given  QueryParameters. | 
| protected void | configureTenantCheck(QueryParameters<?> query)Configure the tenant check for the given  QueryParameters. | 
| protected CommandExecutor | getCommandExecutor()Return a  CommandExecutorfor the current
 engine to execute plugin commands. | 
| protected Authentication | getCurrentAuthentication()Return the current authentication. | 
| protected QueryService | getQueryService()Return a  QueryServicefor the current
 engine to execute queries against the engine datbase. | 
| protected boolean | isAuthorizationEnabled()Return  trueif authorization is enabled. | 
| protected boolean | isCamundaAdmin(Authentication authentication)Return  trueif the given authentication contains the groupGroups.CAMUNDA_ADMIN. | 
| protected boolean | isTenantCheckEnabled()Return  trueif tenant check is enabled. | 
getProcessEnginepublic AbstractCockpitPluginResource(String engineName)
protected CommandExecutor getCommandExecutor()
CommandExecutor for the current
 engine to execute plugin commands.protected QueryService getQueryService()
QueryService for the current
 engine to execute queries against the engine datbase.protected boolean isAuthorizationEnabled()
true if authorization is enabled.protected boolean isTenantCheckEnabled()
true if tenant check is enabled.protected boolean isCamundaAdmin(Authentication authentication)
true if the given authentication contains the group Groups.CAMUNDA_ADMIN.protected Authentication getCurrentAuthentication()
protected void configureAuthorizationCheck(QueryParameters<?> query)
QueryParameters.protected void configureTenantCheck(QueryParameters<?> query)
QueryParameters.protected void addPermissionCheck(QueryParameters<?> query, Resource resource, String queryParam, Permission permission)
PermissionCheck with the given values.Copyright © 2018. All rights reserved.