public class TaskanaEngineConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String>> |
classificationCategoriesByTypeMap |
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 String |
schemaName |
protected boolean |
securityEnabled |
protected static String |
TASKANA_SCHEMA_VERSION |
protected boolean |
useManagedTransactions |
| Constructor and Description |
|---|
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
boolean securityEnabled,
String schemaName) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
boolean securityEnabled,
String propertiesFileName,
String rolesSeparator,
String schemaName) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
String schemaName) |
protected static final String TASKANA_SCHEMA_VERSION
protected String propertiesFileName
protected DataSource dataSource
protected DbSchemaCreator dbSchemaCreator
protected String schemaName
protected String rolesSeparator
protected Map<TaskanaRole,Set<String>> roleMap
protected boolean securityEnabled
protected boolean useManagedTransactions
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions, String schemaName) throws SQLException
SQLExceptionpublic TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions, boolean securityEnabled, String schemaName) throws SQLException
SQLExceptionpublic TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions, boolean securityEnabled, String propertiesFileName, String rolesSeparator, String schemaName) 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 getMaxNumberOfUpdatesPerTransaction()
public int getMaxNumberOfJobRetries()
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 List<String> getClassificationCategoriesByType(String type)
public void setClassificationCategoriesByType(Map<String,List<String>> classificationCategoriesByType)
public java.time.Instant getCleanupJobFirstRun()
public java.time.Duration getCleanupJobRunEvery()
public java.time.Duration getCleanupJobMinimumAge()
public void setTaskCleanupJobAllCompletedSameParentBusiness(boolean taskCleanupJobAllCompletedSameParentBusiness)
public boolean isTaskCleanupJobAllCompletedSameParentBusiness()
public String getSchemaName()
public void setSchemaName(String schemaName)
public static boolean shouldUseLowerCaseForAccessIds()
Copyright © 2019. All rights reserved.