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 String |
propertiesSeparator |
protected Map<TaskanaRole,Set<String>> |
roleMap |
protected String |
schemaName |
protected boolean |
securityEnabled |
protected SecurityVerifier |
securityVerifier |
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 propertySeparator,
String schemaName) |
TaskanaEngineConfiguration(DataSource dataSource,
boolean useManagedTransactions,
String schemaName) |
protected String propertiesFileName
protected DataSource dataSource
protected DbSchemaCreator dbSchemaCreator
protected String schemaName
protected String propertiesSeparator
protected Map<TaskanaRole,Set<String>> roleMap
protected boolean securityEnabled
protected SecurityVerifier securityVerifier
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 propertySeparator, String schemaName) 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 int getMaxNumberOfUpdatesPerTransaction()
public void setMaxNumberOfUpdatesPerTransaction(int jobBatchSize)
public int getMaxNumberOfJobRetries()
public void setMaxNumberOfJobRetries(int maxNumberOfJobRetries)
public boolean isCorpusChristiEnabled()
public void setCorpusChristiEnabled(boolean corpusChristiEnabled)
public boolean isGermanPublicHolidaysEnabled()
public void setGermanPublicHolidaysEnabled(boolean germanPublicHolidaysEnabled)
public boolean isDeleteHistoryOnTaskDeletionEnabled()
public void setDeleteHistoryOnTaskDeletionEnabled(boolean deleteHistoryOnTaskDeletionEnabled)
public List<CustomHoliday> getCustomHolidays()
public void addCustomHolidays(List<CustomHoliday> customHolidays)
public Map<TaskanaRole,Set<String>> getRoleMap()
public void setRoleMap(Map<TaskanaRole,Set<String>> roleMap)
public Map<String,List<String>> getClassificationCategoriesByTypeMap()
public List<String> getClassificationCategoriesByType(String type)
public void setClassificationCategoriesByType(Map<String,List<String>> classificationCategoriesByType)
public Instant getCleanupJobFirstRun()
public void setCleanupJobFirstRun(Instant cleanupJobFirstRun)
public Duration getCleanupJobRunEvery()
public void setCleanupJobRunEvery(Duration cleanupJobRunEvery)
public Duration getCleanupJobMinimumAge()
public void setCleanupJobMinimumAge(Duration cleanupJobMinimumAge)
public boolean isTaskCleanupJobAllCompletedSameParentBusiness()
public void setTaskCleanupJobAllCompletedSameParentBusiness(boolean taskCleanupJobAllCompletedSameParentBusiness)
public String getSchemaName()
public void setSchemaName(String schemaName)
public static boolean shouldUseLowerCaseForAccessIds()
Copyright © 2020. All rights reserved.