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
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource
engineName, runtimeDelegate
-
-
Constructor Summary
Constructors Constructor Description AbstractCockpitPluginResource(String engineName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPermissionCheck(QueryParameters query, org.camunda.bpm.engine.authorization.Resource resource, String queryParam, org.camunda.bpm.engine.authorization.Permission permission)Add a newPermissionCheckwith the given values.protected voidconfigureAuthorizationCheck(QueryParameters query)Configure the authorization check for the givenQueryParameters.protected voidconfigureTenantCheck(QueryParameters query)Configure the tenant check for the givenQueryParameters.protected CommandExecutorgetCommandExecutor()Return aCommandExecutorfor the current engine to execute plugin commands.protected org.camunda.bpm.engine.impl.identity.AuthenticationgetCurrentAuthentication()Return the current authentication.protected QueryServicegetQueryService()Return aQueryServicefor the current engine to execute queries against the engine datbase.protected booleanisAuthorizationEnabled()Returntrueif authorization is enabled.protected booleanisCamundaAdmin(org.camunda.bpm.engine.impl.identity.Authentication authentication)Returntrueif the given authentication contains the groupGroups.CAMUNDA_ADMIN.protected booleanisPermissionDisabled(org.camunda.bpm.engine.authorization.Permission permission)protected booleanisTenantCheckEnabled()Returntrueif tenant check is enabled.-
Methods inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource
getProcessEngine
-
-
-
-
Constructor Detail
-
AbstractCockpitPluginResource
public AbstractCockpitPluginResource(String engineName)
-
-
Method Detail
-
getCommandExecutor
protected CommandExecutor getCommandExecutor()
Return aCommandExecutorfor the current engine to execute plugin commands.- Returns:
-
getQueryService
protected QueryService getQueryService()
Return aQueryServicefor the current engine to execute queries against the engine datbase.- Returns:
-
isAuthorizationEnabled
protected boolean isAuthorizationEnabled()
Returntrueif authorization is enabled.
-
isTenantCheckEnabled
protected boolean isTenantCheckEnabled()
Returntrueif tenant check is enabled.
-
isCamundaAdmin
protected boolean isCamundaAdmin(org.camunda.bpm.engine.impl.identity.Authentication authentication)
Returntrueif the given authentication contains the groupGroups.CAMUNDA_ADMIN.
-
getCurrentAuthentication
protected org.camunda.bpm.engine.impl.identity.Authentication getCurrentAuthentication()
Return the current authentication.
-
configureAuthorizationCheck
protected void configureAuthorizationCheck(QueryParameters query)
Configure the authorization check for the givenQueryParameters.
-
configureTenantCheck
protected void configureTenantCheck(QueryParameters query)
Configure the tenant check for the givenQueryParameters.
-
addPermissionCheck
protected void addPermissionCheck(QueryParameters query, org.camunda.bpm.engine.authorization.Resource resource, String queryParam, org.camunda.bpm.engine.authorization.Permission permission)
Add a newPermissionCheckwith the given values.
-
isPermissionDisabled
protected boolean isPermissionDisabled(org.camunda.bpm.engine.authorization.Permission permission)
-
-