public class TaskanaEngineConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
protected DbSchemaCreator |
dbScriptRunner |
protected String |
propertiesFileName |
protected String |
propertiesSeparator |
protected boolean |
securityEnabled |
protected boolean |
useManagedTransactions |
| Constructor and Description |
|---|
TaskanaEngineConfiguration(boolean enableSecurity) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
boolean securityEnabled) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
boolean securityEnabled,
String propertiesFileName,
String propertiesSeparator) |
| Modifier and Type | Method and Description |
|---|---|
TaskanaEngine |
buildTaskanaEngine()
This method creates the TaskanaEngine without an sqlSessionFactory.
|
static DataSource |
createDatasource(String driver,
String jdbcUrl,
String username,
String password)
This method creates a PooledDataSource, if the needed properties are provided.
|
static DataSource |
createDefaultDataSource() |
List<java.time.LocalDate> |
getCustomHolidays() |
DataSource |
getDatasource() |
String |
getPropertiesFileName() |
String |
getPropertiesSeparator() |
boolean |
getUseManagedTransactions() |
boolean |
isGermanPublicHolidaysEnabled() |
boolean |
isSecurityEnabled() |
void |
setCustomHolidays(List<java.time.LocalDate> customHolidays) |
void |
setGermanPublicHolidaysEnabled(boolean germanPublicHolidaysEnabled) |
void |
setPropertiesFileName(String propertiesFileName) |
void |
setPropertiesSeparator(String propertiesSeparator) |
static boolean |
shouldUseLowerCaseForAccessIds()
Helper method to determine whether all access ids (user Id and group ids) should be used in lower case.
|
protected DataSource dataSource
protected DbSchemaCreator dbScriptRunner
protected String propertiesFileName
protected String propertiesSeparator
protected boolean securityEnabled
protected boolean useManagedTransactions
public TaskanaEngineConfiguration(boolean enableSecurity)
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions) throws SQLException
SQLExceptionpublic TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions, boolean securityEnabled) throws SQLException
SQLExceptionpublic TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions, boolean securityEnabled, String propertiesFileName, String propertiesSeparator) throws SQLException
SQLExceptionpublic static DataSource createDefaultDataSource()
public TaskanaEngine buildTaskanaEngine()
public static DataSource createDatasource(String driver, String jdbcUrl, String username, String password)
driver - the name of the jdbc driverjdbcUrl - the url to which the jdbc driver connectsusername - the user name for database accesspassword - the password for database accesspublic boolean isSecurityEnabled()
public DataSource getDatasource()
public boolean getUseManagedTransactions()
public String getPropertiesFileName()
public void setPropertiesFileName(String propertiesFileName)
public String getPropertiesSeparator()
public void setPropertiesSeparator(String propertiesSeparator)
public boolean isGermanPublicHolidaysEnabled()
public void setGermanPublicHolidaysEnabled(boolean germanPublicHolidaysEnabled)
public List<java.time.LocalDate> getCustomHolidays()
public void setCustomHolidays(List<java.time.LocalDate> customHolidays)
public static boolean shouldUseLowerCaseForAccessIds()
Copyright © 2018. All rights reserved.