Class AbstractCockpitPluginResource
java.lang.Object
org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource<CockpitPlugin>
org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginResource
- Direct Known Subclasses:
AbstractPluginResource
Base class for implementing a plugin REST resource.
- Author:
- Daniel Meyer
-
Field Summary
Fields inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource
engineName, runtimeDelegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPermissionCheck
(QueryParameters query, Resource resource, String queryParam, Permission permission) Add a newPermissionCheck
with the given values.protected void
Configure the authorization check for the givenQueryParameters
.protected void
Configure the tenant check for the givenQueryParameters
.protected CommandExecutor
Return aCommandExecutor
for the current engine to execute plugin commands.protected Authentication
Return the current authentication.protected QueryService
Return aQueryService
for the current engine to execute queries against the engine datbase.protected boolean
Returntrue
if authorization is enabled.protected boolean
isCamundaAdmin
(Authentication authentication) Returntrue
if the given authentication is part of the admin groups or admin usersprotected boolean
isPermissionDisabled
(Permission permission) protected boolean
Returntrue
if tenant check is enabled.Methods inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource
getProcessEngine
-
Constructor Details
-
AbstractCockpitPluginResource
-
-
Method Details
-
getCommandExecutor
Return aCommandExecutor
for the current engine to execute plugin commands.- Returns:
-
getQueryService
Return aQueryService
for the current engine to execute queries against the engine datbase.- Returns:
-
isAuthorizationEnabled
protected boolean isAuthorizationEnabled()Returntrue
if authorization is enabled. -
isTenantCheckEnabled
protected boolean isTenantCheckEnabled()Returntrue
if tenant check is enabled. -
isCamundaAdmin
Returntrue
if the given authentication is part of the admin groups or admin users -
getCurrentAuthentication
Return the current authentication. -
configureAuthorizationCheck
Configure the authorization check for the givenQueryParameters
. -
configureTenantCheck
Configure the tenant check for the givenQueryParameters
. -
addPermissionCheck
protected void addPermissionCheck(QueryParameters query, Resource resource, String queryParam, Permission permission) Add a newPermissionCheck
with the given values. -
isPermissionDisabled
-