public interface TaskanaEngine
| Modifier and Type | Interface and Description |
|---|---|
static class |
TaskanaEngine.ConnectionManagementMode
Connection management mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkRoleMembership(TaskanaRole... roles)
Checks whether current user is member of any of the specified roles.
|
void |
closeConnection()
Closes the client's connection, sets it to null and switches to mode PARTICIPATE.
|
ClassificationService |
getClassificationService()
The ClassificationService can be used for operations on all Categories.
|
TaskanaEngineConfiguration |
getConfiguration()
The Taskana configuration.
|
JobService |
getJobService()
The JobService can be user for all job operations.
|
MonitorService |
getMonitorService()
The MonitorService can be used for monitoring Tasks.
|
TaskService |
getTaskService()
The TaskService can be used for operations on all Tasks.
|
WorkbasketService |
getWorkbasketService()
The WorkbasketService can be used for operations on all Workbaskets.
|
boolean |
isHistoryEnabled()
Checks if the history plugin is enabled.
|
boolean |
isUserInRole(TaskanaRole... roles)
check whether the current user is member of one of the roles specified.
|
void |
setConnection(Connection connection)
Set the connection to be used by taskana in mode CONNECTION_MANAGED_EXTERNALLY.
|
void |
setConnectionManagementMode(TaskanaEngine.ConnectionManagementMode mode)
sets the connection management mode.
|
TaskService getTaskService()
MonitorService getMonitorService()
WorkbasketService getWorkbasketService()
ClassificationService getClassificationService()
JobService getJobService()
TaskanaEngineConfiguration getConfiguration()
boolean isHistoryEnabled()
void setConnectionManagementMode(TaskanaEngine.ConnectionManagementMode mode)
mode - the connection management mode Valid values are:
void setConnection(Connection connection) throws SQLException
connection - - The java.sql.Connection that is controlled by the clientSQLException - if a database access error occursvoid closeConnection()
boolean isUserInRole(TaskanaRole... roles)
roles - The roles that are checked for membership of the current uservoid checkRoleMembership(TaskanaRole... roles) throws NotAuthorizedException
roles - The roles that are checked for membership of the current userNotAuthorizedException - If the current user is not member of any specified roleCopyright © 2020. All rights reserved.