public interface InternalTaskanaEngine
Contains all actions which are necessary within taskana.
| Modifier and Type | Method and Description |
|---|---|
boolean |
domainExists(String domain)
Returns true if the given domain does exist in the configuration.
|
TaskanaEngine |
getEngine()
Retrieve TaskanaEngine.
|
HistoryEventProducer |
getHistoryEventProducer()
Retrieve HistoryEventProducer.
|
org.apache.ibatis.session.SqlSession |
getSqlSession()
retrieve the SqlSession used by taskana.
|
TaskRoutingManager |
getTaskRoutingManager()
Retrieve TaskRoutingProducer.
|
void |
initSqlSession()
Initializes the SqlSessionManager.
|
<T> T |
openAndReturnConnection(Supplier<T> supplier)
Executes the supplier after openConnection is called and then returns the connection.
|
void |
openConnection()
Opens the connection to the database.
|
void |
returnConnection()
Returns the database connection into the pool.
|
<T> T |
runAsAdmin(Supplier<T> supplier)
This method is supposed to skip further permission checks if we are already in a secured
environment.
|
void openConnection()
void returnConnection()
<T> T openAndReturnConnection(Supplier<T> supplier)
T - any typesupplier - a function that returns something of type Tvoid initSqlSession()
boolean domainExists(String domain)
domain - the domain specified in the configurationtrue if the domain existsorg.apache.ibatis.session.SqlSession getSqlSession()
TaskanaEngine getEngine()
HistoryEventProducer getHistoryEventProducer()
TaskRoutingManager getTaskRoutingManager()
<T> T runAsAdmin(Supplier<T> supplier)
T - defined with the supplier return valuesupplier - will be executed with admin privilegesCopyright © 2020. All rights reserved.