|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource<CockpitPlugin>
org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginResource
public class AbstractCockpitPluginResource
Base class for implementing a plugin REST resource.
| Field Summary |
|---|
| Fields inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource |
|---|
engineName, runtimeDelegate |
| Constructor Summary | |
|---|---|
AbstractCockpitPluginResource(String engineName)
|
|
| Method Summary | |
|---|---|
protected void |
addPermissionCheck(QueryParameters<?> query,
org.camunda.bpm.engine.authorization.Resource resource,
String queryParam,
org.camunda.bpm.engine.authorization.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 org.camunda.bpm.engine.impl.identity.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(org.camunda.bpm.engine.impl.identity.Authentication authentication)
Return true if the given authentication contains the group Groups.CAMUNDA_ADMIN. |
protected boolean |
isTenantCheckEnabled()
Return true if tenant check is enabled. |
| Methods inherited from class org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource |
|---|
getProcessEngine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCockpitPluginResource(String engineName)
| Method Detail |
|---|
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(org.camunda.bpm.engine.impl.identity.Authentication authentication)
true if the given authentication contains the group Groups.CAMUNDA_ADMIN.
protected org.camunda.bpm.engine.impl.identity.Authentication getCurrentAuthentication()
protected void configureAuthorizationCheck(QueryParameters<?> query)
QueryParameters.
protected void configureTenantCheck(QueryParameters<?> query)
QueryParameters.
protected void addPermissionCheck(QueryParameters<?> query,
org.camunda.bpm.engine.authorization.Resource resource,
String queryParam,
org.camunda.bpm.engine.authorization.Permission permission)
PermissionCheck with the given values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||