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 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 iff authorization is enabled. |
getProcessEngine
public 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
iff authorization is enabled.protected Authentication getCurrentAuthentication()
protected void configureAuthorizationCheck(QueryParameters<?> query)
QueryParameters
.protected void addPermissionCheck(QueryParameters<?> query, Resource resource, String queryParam, Permission permission)
PermissionCheck
with the given values.Copyright © 2018. All rights reserved.