Package pro.taskana

Class 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.
    • 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
      • getAllClassificationCategories

        public List<String> getAllClassificationCategories()
      • 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()
      • getClassificationTypes

        public List<String> getClassificationTypes()
      • isUseWorkingTimeCalculation

        public boolean isUseWorkingTimeCalculation()
      • getWorkingTimeScheduleTimeZone

        public ZoneId getWorkingTimeScheduleTimeZone()
      • 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()
      • getJobLockExpirationPeriod

        public Duration getJobLockExpirationPeriod()
      • isTaskCleanupJobEnabled

        public boolean isTaskCleanupJobEnabled()
      • getTaskCleanupJobMinimumAge

        public Duration getTaskCleanupJobMinimumAge()
      • isTaskCleanupJobAllCompletedSameParentBusiness

        public boolean isTaskCleanupJobAllCompletedSameParentBusiness()
      • getTaskCleanupJobLockExpirationPeriod

        public Duration getTaskCleanupJobLockExpirationPeriod()
      • isWorkbasketCleanupJobEnabled

        public boolean isWorkbasketCleanupJobEnabled()
      • getWorkbasketCleanupJobLockExpirationPeriod

        public Duration getWorkbasketCleanupJobLockExpirationPeriod()
      • isSimpleHistoryCleanupJobEnabled

        public boolean isSimpleHistoryCleanupJobEnabled()
      • getSimpleHistoryCleanupJobBatchSize

        public int getSimpleHistoryCleanupJobBatchSize()
      • getSimpleHistoryCleanupJobMinimumAge

        public Duration getSimpleHistoryCleanupJobMinimumAge()
      • isSimpleHistoryCleanupJobAllCompletedSameParentBusiness

        public boolean isSimpleHistoryCleanupJobAllCompletedSameParentBusiness()
      • getSimpleHistoryCleanupJobLockExpirationPeriod

        public Duration getSimpleHistoryCleanupJobLockExpirationPeriod()
      • isTaskUpdatePriorityJobEnabled

        public boolean isTaskUpdatePriorityJobEnabled()
      • getTaskUpdatePriorityJobBatchSize

        public int getTaskUpdatePriorityJobBatchSize()
      • getTaskUpdatePriorityJobFirstRun

        public Instant getTaskUpdatePriorityJobFirstRun()
      • getTaskUpdatePriorityJobRunEvery

        public Duration getTaskUpdatePriorityJobRunEvery()
      • getTaskUpdatePriorityJobLockExpirationPeriod

        public Duration getTaskUpdatePriorityJobLockExpirationPeriod()
      • isUserInfoRefreshJobEnabled

        public boolean isUserInfoRefreshJobEnabled()
      • getUserRefreshJobFirstRun

        public Instant getUserRefreshJobFirstRun()
      • getUserRefreshJobRunEvery

        public Duration getUserRefreshJobRunEvery()
      • getUserRefreshJobLockExpirationPeriod

        public Duration getUserRefreshJobLockExpirationPeriod()
      • getCustomJobs

        public Set<String> getCustomJobs()
      • isAddAdditionalUserInfo

        public boolean isAddAdditionalUserInfo()
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object