EN · DE · RU · FR · ES

#674: ConfigurationParam.java

projectforge-business/src/main/java/org/projectforge/framework/configuration/ConfigurationParam.java Typ: Java · Rolle: Konfiguration · Quelle: projectforge-business/src/main/java/org/projectforge/framework/configuration/ConfigurationParam.java 253 Zeilen · 88 Code · 142 Kommentare · 23 leer
Spring-/Anwendungskonfigurationsklasse, die Beans, Einstellungen und die Verdrahtung für das ConfigurationParam-Subsystem definiert.

Codestruktur

Paket: org.projectforge.framework.configuration

Enums: ConfigurationParam

Implementiert: IConfigurationParam

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

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

Importe: 1 Paket

Quellcode (gekürzt)

package org.projectforge.framework.configuration;

import java.util.TimeZone;

/**
 * Konfigurationsparameter-Klasse.
 */
public enum ConfigurationParam implements IConfigurationParam
{
  /**
   * System-Admin-E-Mail.
   */
  SYSTEM_ADMIN_E_MAIL("systemAdministratorEMail", ConfigurationType.STRING), //
  /**
   * Konfigurationsparameter für die Nachricht des Tages.
   */
  MESSAGE_OF_THE_DAY("messageOfTheDay", ConfigurationType.TEXT), //

  /**
   * Die Kalender-Domain.
   */
  CALENDAR_DOMAIN("calendarDomain", ConfigurationType.STRING), //
  /**
   * Konfigurationsparameter für die Organisation.
   */
  ORGANIZATION("organization", ConfigurationType.TEXT), //
  /**
   * Konfigurationsparameter für die Standardzeitzone.
   */
  DEFAULT_TIMEZONE("timezone", ConfigurationType.TIME_ZONE, TimeZone.getDefault().getID()), //
  /**
   * Konfigurationsparameter für Datumsformate.
   */
  DATE_FORMATS("dateFormats", ConfigurationType.STRING, "MM/dd/yyyy;dd/MM/yyyy;dd.MM.yyyy;yyyy-MM-dd"), //
  /**
   * Konfigurationsparameter für Excel-Datumsformate.
   */
  EXCEL_DATE_FORMATS("excelDateFormats", ConfigurationType.STRING, "MM/DD/YYYY;DD/MM/YYYY;DD.MM.YYYY"), //
  /**
   * Konfigurationsparameter für Feedback-E-Mail.
   */
  FEEDBACK_E_MAIL("feedbackEMail", ConfigurationType.STRING), //
  /**
   * Konfigurationsparameter für den Fibu-Standard-Mehrwertsteuersatz.
   */
  FIBU_DEFAULT_VAT("fibu.defaultVAT", ConfigurationType.PERCENT), //
  /**
   * Konfigurationsparameter für Kosten konfiguriert.
   */
  COST_CONFIGURED("fibu.costConfigured", ConfigurationType.BOOLEAN), //
  /**
   * Konfigurationsparameter für Kosten konfiguriert.
   */
  TIMESHEET_NOTE_SAVINGS_BY_AI("timesheet.noteSavingsByAI", ConfigurationType.TEXT), //
  /**
   * Konfigurationsparameter für die Standard-Ländervorwahl.
   */
  DEFAULT_COUNTRY_PHONE_PREFIX("countryPhonePrefix", ConfigurationType.STRING, "+49"), //
  /**
   * Konfigurationsparameter für Plugin aktiviert.
   */
  PLUGIN_ACTIVATED("pluginsActivated", ConfigurationType.STRING), //
  /**
   * Konfigurationsparameter für HR-E-Mail-Adresse.
   */
  HR_MAILADDRESS("hr.emailaddress", ConfigurationType.STRING),//
  /**
   * Global definierte, optionale Tags, die Benutzer ihren Zeiterfassungsbögen hinzufügen können.
   */
  TIMESHEET_TAGS("timesheetTags", ConfigurationType.STRING), //
  /**
   * Konfigurationsparameter für Enddatum des Urlaubs aus dem letzten Jahr.
   */
  END_DATE_VACATION_LAST_YEAR("vacation.lastyear.enddate", ConfigurationType.STRING, "31.03."),
  /**
   * Konfigurationsparameter für die Mindestpasswortlänge.
   */
  MIN_PASSWORD_LENGTH("minPasswordLength", ConfigurationType.LONG, 8),
  /**
   * Passwort-Flag-Prüfung – Konfiguration, dass Passwörter überprüft werden, ob sie bei jeder Eingabe eines neuen Passworts geändert werden müssen.
   */
  PASSWORD_FLAG_CHECK_CHANGE("password.flag.checkChange", ConfigurationType.BOOLEAN, true);

  /**
   * Schlüssel.
   */
  private final String key;

  /**
   * Konfigurationstyp.
   */
  private final ConfigurationType type;

  /**
   * Standard-String-Wert.
   */
  private final String defaultStringValue;

  /**
   * Standard-Integer-Wert.
   */
  private final int defaultIntValue;

  /**
   * Standard-Boolean-Wert.
   */
  private final boolean defaultBooleanValue;

  /**
   * Der Schlüssel wird z. B. für die Internationalisierung (i18n) verwendet.
   *
   * @return
   */
  @Override
  public String getKey()
  {
    return key;
  }

// ... (gekürzt, insgesamt 231 Zeilen)

Git-Verlauf

868d6abb7 2025 -> 2026
f894af3ac ConfigurationParam.timesheet.noteSavingsByAI STRING -> TEXT
1449f4859 WIP: Zeiteinsparungen durch KI in Zeiterfassungsbögen, Konfigurationsparameter für Notiz hinzugefügt.
63081666f Quellcodedatei-Header: 2024 -> 2025.
4c04cfd65 MAJOR-CHANGE! Migration von Integer-IDs zu Long-IDs (einschließlich Fremdschlüsseln usw.)