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
PermissionCheck with 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
CommandExecutor for the current
engine to execute plugin commands. |
protected Authentication |
getCurrentAuthentication()
Return the current authentication.
|
protected QueryService |
getQueryService()
Return a
QueryService for the current
engine to execute queries against the engine datbase. |
protected boolean |
isAuthorizationEnabled()
Return
true if authorization is enabled. |
protected boolean |
isCamundaAdmin(Authentication authentication)
Return
true if the given authentication contains the group Groups.CAMUNDA_ADMIN. |
protected boolean |
isPermissionDisabled(Permission permission) |
protected boolean |
isTenantCheckEnabled()
Return
true if 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.protected boolean isPermissionDisabled(Permission permission)
Copyright © 2021. All rights reserved.