public class TaskanaEngineConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
classificationCategories |
protected List<String> |
classificationTypes |
protected DataSource |
dataSource |
protected DbSchemaCreator |
dbSchemaCreator |
protected List<String> |
domains |
protected String |
propertiesFileName |
protected Map<TaskanaRole,Set<String>> |
roleMap |
protected String |
rolesSeparator |
protected boolean |
securityEnabled |
protected static String |
TASKANA_SCHEMA_VERSION |
protected boolean |
useManagedTransactions |
| Constructor and Description |
|---|
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
boolean securityEnabled) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
boolean securityEnabled,
String propertiesFileName,
String rolesSeparator) |
protected static final String TASKANA_SCHEMA_VERSION
protected String propertiesFileName
protected DataSource dataSource
protected DbSchemaCreator dbSchemaCreator
protected String rolesSeparator
protected Map<TaskanaRole,Set<String>> roleMap
protected boolean securityEnabled
protected boolean useManagedTransactions
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 rolesSeparator) throws SQLException
SQLExceptionpublic void initTaskanaProperties(String propertiesFile, String rolesSeparator)
public 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 int getMaxNumberOfTaskUpdatesPerTransaction()
public int getMaxNumberOfRetriesOfFailedTaskUpdates()
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 Map<TaskanaRole,Set<String>> getRoleMap()
public void setRoleMap(Map<TaskanaRole,Set<String>> roleMap)
public void setClassificationCategories(List<String> classificationCategories)
public static boolean shouldUseLowerCaseForAccessIds()
Copyright © 2018. All rights reserved.