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 Set<String> getAllClassificationCategories()
      • getClassificationCategoriesByType

        public Set<String> getClassificationCategoriesByType​(String type)
      • getClassificationCategoriesByType

        public Map<String,​Set<String>> getClassificationCategoriesByType()
      • getDataSource

        public DataSource getDataSource()
      • isUseManagedTransactions

        public boolean isUseManagedTransactions()
      • getSchemaName

        public String getSchemaName()
      • isSecurityEnabled

        public boolean isSecurityEnabled()
      • getDomains

        public Set<String> getDomains()
      • isEnforceServiceLevel

        public boolean isEnforceServiceLevel()
      • getClassificationTypes

        public Set<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()
      • 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()
      • getCustomJobs

        public Set<String> getCustomJobs()
      • isAddAdditionalUserInfo

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