Package pro.taskana
Class TaskanaConfiguration
- java.lang.Object
-
- pro.taskana.TaskanaConfiguration
-
public class TaskanaConfiguration extends Object
This central class creates the TaskanaEngine and holds all the information about DB and Security.
Security is enabled by default.
All members are immutable, also Lists and Maps and Sets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskanaConfiguration.Builder
-
Method Summary
-
-
-
Method Detail
-
shouldUseLowerCaseForAccessIds
public static boolean shouldUseLowerCaseForAccessIds()
Helper method to determine whether all access ids (user id and group ids) should be used in lower case.- Returns:
- true if all access ids should be used in lower case, false otherwise
-
getClassificationCategoriesByType
public List<String> getClassificationCategoriesByType(String type)
-
getClassificationCategoriesByType
public Map<String,List<String>> getClassificationCategoriesByType()
-
getDataSource
public DataSource getDataSource()
-
isUseManagedTransactions
public boolean isUseManagedTransactions()
-
getSchemaName
public String getSchemaName()
-
isSecurityEnabled
public boolean isSecurityEnabled()
-
isEnforceServiceLevel
public boolean isEnforceServiceLevel()
-
getRoleMap
public Map<TaskanaRole,Set<String>> getRoleMap()
-
getWorkingTimeSchedule
public Map<DayOfWeek,Set<LocalTimeInterval>> getWorkingTimeSchedule()
-
getWorkingTimeScheduleTimeZone
public ZoneId getWorkingTimeScheduleTimeZone()
-
getCustomHolidays
public Set<CustomHoliday> getCustomHolidays()
-
isGermanPublicHolidaysEnabled
public boolean isGermanPublicHolidaysEnabled()
-
isGermanPublicHolidaysCorpusChristiEnabled
public boolean isGermanPublicHolidaysCorpusChristiEnabled()
-
isDeleteHistoryEventsOnTaskDeletionEnabled
public boolean isDeleteHistoryEventsOnTaskDeletionEnabled()
-
getLogHistoryLoggerName
public String getLogHistoryLoggerName()
-
isJobSchedulerEnabled
public boolean isJobSchedulerEnabled()
-
getJobSchedulerInitialStartDelay
public long getJobSchedulerInitialStartDelay()
-
getJobSchedulerPeriod
public long getJobSchedulerPeriod()
-
getJobSchedulerPeriodTimeUnit
public TimeUnit getJobSchedulerPeriodTimeUnit()
-
getMaxNumberOfJobRetries
public int getMaxNumberOfJobRetries()
-
getJobBatchSize
public int getJobBatchSize()
-
getJobFirstRun
public Instant getJobFirstRun()
-
getJobRunEvery
public Duration getJobRunEvery()
-
isTaskCleanupJobEnabled
public boolean isTaskCleanupJobEnabled()
-
getTaskCleanupJobMinimumAge
public Duration getTaskCleanupJobMinimumAge()
-
isTaskCleanupJobAllCompletedSameParentBusiness
public boolean isTaskCleanupJobAllCompletedSameParentBusiness()
-
isWorkbasketCleanupJobEnabled
public boolean isWorkbasketCleanupJobEnabled()
-
isSimpleHistoryCleanupJobEnabled
public boolean isSimpleHistoryCleanupJobEnabled()
-
getSimpleHistoryCleanupJobBatchSize
public int getSimpleHistoryCleanupJobBatchSize()
-
getSimpleHistoryCleanupJobMinimumAge
public Duration getSimpleHistoryCleanupJobMinimumAge()
-
isSimpleHistoryCleanupJobAllCompletedSameParentBusiness
public boolean isSimpleHistoryCleanupJobAllCompletedSameParentBusiness()
-
isTaskUpdatePriorityJobEnabled
public boolean isTaskUpdatePriorityJobEnabled()
-
getTaskUpdatePriorityJobBatchSize
public int getTaskUpdatePriorityJobBatchSize()
-
getTaskUpdatePriorityJobFirstRun
public Instant getTaskUpdatePriorityJobFirstRun()
-
getTaskUpdatePriorityJobRunEvery
public Duration getTaskUpdatePriorityJobRunEvery()
-
isUserInfoRefreshJobEnabled
public boolean isUserInfoRefreshJobEnabled()
-
getUserRefreshJobFirstRun
public Instant getUserRefreshJobFirstRun()
-
getUserRefreshJobRunEvery
public Duration getUserRefreshJobRunEvery()
-
isAddAdditionalUserInfo
public boolean isAddAdditionalUserInfo()
-
getMinimalPermissionsToAssignDomains
public Set<WorkbasketPermission> getMinimalPermissionsToAssignDomains()
-
isUseSpecificDb2Taskquery
public boolean isUseSpecificDb2Taskquery()
-
getProperties
public Map<String,String> getProperties()
return all properties loaded from taskana properties file. Per Design the normal Properties are not immutable, so we return here an ImmutableMap, because we don't want direct changes in the configuration.- Returns:
- all properties loaded from taskana properties file
-
-