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 SummaryFields inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResourceengineName, runtimeDelegate
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddPermissionCheck(QueryParameters query, Resource resource, String queryParam, Permission permission) Add a newPermissionCheckwith the given values.protected voidConfigure the authorization check for the givenQueryParameters.protected voidConfigure the tenant check for the givenQueryParameters.protected CommandExecutorReturn aCommandExecutorfor the current engine to execute plugin commands.protected AuthenticationReturn the current authentication.protected QueryServiceReturn aQueryServicefor the current engine to execute queries against the engine datbase.protected booleanReturntrueif authorization is enabled.protected booleanisCamundaAdmin(Authentication authentication) Returntrueif the given authentication is part of the admin groups or admin usersprotected booleanisPermissionDisabled(Permission permission) protected booleanReturntrueif tenant check is enabled.Methods inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResourcegetProcessEngine
- 
Constructor Details- 
AbstractCockpitPluginResource
 
- 
- 
Method Details- 
getCommandExecutorReturn aCommandExecutorfor the current engine to execute plugin commands.- Returns:
 
- 
getQueryServiceReturn aQueryServicefor the current engine to execute queries against the engine datbase.- Returns:
 
- 
isAuthorizationEnabledprotected boolean isAuthorizationEnabled()Returntrueif authorization is enabled.
- 
isTenantCheckEnabledprotected boolean isTenantCheckEnabled()Returntrueif tenant check is enabled.
- 
isCamundaAdminReturntrueif the given authentication is part of the admin groups or admin users
- 
getCurrentAuthenticationReturn the current authentication.
- 
configureAuthorizationCheckConfigure the authorization check for the givenQueryParameters.
- 
configureTenantCheckConfigure the tenant check for the givenQueryParameters.
- 
addPermissionCheckprotected void addPermissionCheck(QueryParameters query, Resource resource, String queryParam, Permission permission) Add a newPermissionCheckwith the given values.
- 
isPermissionDisabled
 
-