TSK-318: Add Security-switch to EngineConfiguration-Constructor.
This commit is contained in:
parent
7200a826fe
commit
1ee7b1d5fc
|
@ -36,7 +36,7 @@ public class DbSchemaCreator {
|
|||
* Run all db scripts.
|
||||
*
|
||||
* @throws SQLException
|
||||
* TODO
|
||||
* will be thrown if there will be some incorrect SQL statements invoked.
|
||||
*/
|
||||
public void run() throws SQLException {
|
||||
Connection connection = dataSource.getConnection();
|
||||
|
|
|
@ -30,7 +30,8 @@ public class TaskanaEngineConfiguration {
|
|||
protected boolean securityEnabled;
|
||||
protected boolean useManagedTransactions;
|
||||
|
||||
public TaskanaEngineConfiguration() {
|
||||
public TaskanaEngineConfiguration(boolean enableSecurity) {
|
||||
this.securityEnabled = enableSecurity;
|
||||
}
|
||||
|
||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions)
|
||||
|
|
|
@ -17,6 +17,19 @@ public class SpringTaskanaEngineConfiguration extends TaskanaEngineConfiguration
|
|||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SpringTaskanaEngineConfiguration.class);
|
||||
|
||||
public SpringTaskanaEngineConfiguration() {
|
||||
super(false);
|
||||
}
|
||||
|
||||
public SpringTaskanaEngineConfiguration(boolean enableSecurity) {
|
||||
super(enableSecurity);
|
||||
}
|
||||
|
||||
public SpringTaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions,
|
||||
boolean securityEnabled) throws SQLException {
|
||||
super(dataSource, useManagedTransactions, securityEnabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method creates the Spring-based TaskanaEngine without an sqlSessionFactory
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue