EN · DE · RU · FR · ES

#674: ConfigurationParam.java

projectforge-business/src/main/java/org/projectforge/framework/configuration/ConfigurationParam.java Type: Java · Role: Configuration · Source: projectforge-business/src/main/java/org/projectforge/framework/configuration/ConfigurationParam.java 253 lines · 88 code · 142 comments · 23 blank
Spring/application configuration class defining beans, settings, and wiring for the ConfigurationParam subsystem.

Code Structure

Package: org.projectforge.framework.configuration

Enums: ConfigurationParam

Implements: IConfigurationParam

Methods (7): getKey, getType, getI18nKey, getDefaultStringValue, getDefaultLongValue, getDefaultBooleanValue, getDescriptionI18nKey

Fields (5): key, type, defaultStringValue, defaultIntValue, defaultBooleanValue

Imports: 1 packages

Source Code (abridged)

package org.projectforge.framework.configuration;

import java.util.TimeZone;

/**
 * Configuration parameter class.
 */
public enum ConfigurationParam implements IConfigurationParam
{
  /**
   * System admin email.
   */
  SYSTEM_ADMIN_E_MAIL("systemAdministratorEMail", ConfigurationType.STRING), //
  /**
   * Message of the day configuration param.
   */
  MESSAGE_OF_THE_DAY("messageOfTheDay", ConfigurationType.TEXT), //

  /**
   * The Calendar domain.
   */
  CALENDAR_DOMAIN("calendarDomain", ConfigurationType.STRING), //
  /**
   * Organization configuration param.
   */
  ORGANIZATION("organization", ConfigurationType.TEXT), //
  /**
   * Default timezone configuration param.
   */
  DEFAULT_TIMEZONE("timezone", ConfigurationType.TIME_ZONE, TimeZone.getDefault().getID()), //
  /**
   * Date formats configuration param.
   */
  DATE_FORMATS("dateFormats", ConfigurationType.STRING, "MM/dd/yyyy;dd/MM/yyyy;dd.MM.yyyy;yyyy-MM-dd"), //
  /**
   * Excel date formats configuration param.
   */
  EXCEL_DATE_FORMATS("excelDateFormats", ConfigurationType.STRING, "MM/DD/YYYY;DD/MM/YYYY;DD.MM.YYYY"), //
  /**
   * Feedback e mail configuration param.
   */
  FEEDBACK_E_MAIL("feedbackEMail", ConfigurationType.STRING), //
  /**
   * Fibu default vat configuration param.
   */
  FIBU_DEFAULT_VAT("fibu.defaultVAT", ConfigurationType.PERCENT), //
  /**
   * Cost configured configuration param.
   */
  COST_CONFIGURED("fibu.costConfigured", ConfigurationType.BOOLEAN), //
  /**
   * Cost configured configuration param.
   */
  TIMESHEET_NOTE_SAVINGS_BY_AI("timesheet.noteSavingsByAI", ConfigurationType.TEXT), //
  /**
   * Default country phone prefix configuration param.
   */
  DEFAULT_COUNTRY_PHONE_PREFIX("countryPhonePrefix", ConfigurationType.STRING, "+49"), //
  /**
   * Plugin activated configuration param.
   */
  PLUGIN_ACTIVATED("pluginsActivated", ConfigurationType.STRING), //
  /**
   * Hr mailaddress configuration param.
   */
  HR_MAILADDRESS("hr.emailaddress", ConfigurationType.STRING),//
  /**
   * Globally defined, optional tags, the users may add to their time sheets.
   */
  TIMESHEET_TAGS("timesheetTags", ConfigurationType.STRING), //
  /**
   * End date vacation lastr year configuration param.
   */
  END_DATE_VACATION_LAST_YEAR("vacation.lastyear.enddate", ConfigurationType.STRING, "31.03."),
  /**
   * Minimum password length configuration param.
   */
  MIN_PASSWORD_LENGTH("minPasswordLength", ConfigurationType.LONG, 8),
  /**
   * Password Flag Check - configuration, that passwords will be checked that passwords have to change each time a new one is entered.
   */
  PASSWORD_FLAG_CHECK_CHANGE("password.flag.checkChange", ConfigurationType.BOOLEAN, true);

  /**
   * Key.
   */
  private final String key;

  /**
   * Configuration Type.
   */
  private final ConfigurationType type;

  /**
   * Default string value.
   */
  private final String defaultStringValue;

  /**
   * Default int value.
   */
  private final int defaultIntValue;

  /**
   * Default boolean value.
   */
  private final boolean defaultBooleanValue;

  /**
   * Key will be used e. g. for i18n.
   *
   * @return
   */
  @Override
  public String getKey()
  {
    return key;
  }

// ... (truncated, total 231 lines)

Git History

868d6abb7 2025 -> 2026
f894af3ac ConfigurationParam.timesheet.noteSavingsByAI STRING -> TEXT
1449f4859 WIP: timesavings by AI in timesheets, config param for note added.
63081666f Source file headers: 2024-> 2025.
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)