EN · DE · RU · FR · ES

#966 : PeriodOfPerformanceType.kt

projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt Classe Kotlin, projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt 64 lignes · 29 code · 26 commentaires · 9 vides
Objectif : Fichier source : projectforge/business/fibu/PeriodOfPerformanceType.kt. PeriodOfPerformanceType.kt fait partie de l'application open-source de gestion de projet ProjectForge.

Source (100 premières lignes)

/////////////////////////////////////////////////////////////////////////////
//
// Projet ProjectForge Community Edition
//         www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Allemagne (www.micromata.com)
//
// ProjectForge est sous double licence.
//
// Cette édition communautaire est un logiciel libre ; vous pouvez la redistribuer et/ou
// la modifier selon les termes de la GNU General Public License telle que publiée
// par la Free Software Foundation ; version 3 de la Licence.
//
// Cette édition communautaire est distribuée dans l'espoir qu'elle sera utile,
// mais SANS AUCUNE GARANTIE ; sans même la garantie implicite de
// QUALITÉ MARCHANDE ou d'ADÉQUATION À UN USAGE PARTICULIER. Voir la GNU General
// Public License pour plus de détails.
//
// Vous devriez avoir reçu une copie de la GNU General Public License avec
// ce programme ; sinon, consultez http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////

package org.projectforge.business.fibu

import org.projectforge.common.i18n.I18nEnum

enum class PeriodOfPerformanceType(key: String) : I18nEnum {
    SEEABOVE("seeabove"),
    OWN("own");

    private val key: String

    /**
     * La clé sera utilisée par exemple pour l'i18n.
     * @return
     */
    fun getKey(): String {
        return key
    }

    init {
        this.key = key
    }

    fun isIn(vararg status: PeriodOfPerformanceType?): Boolean {
        for (st in status) {
            if (this == st) {
                return true
            }
        }
        return false
    }

    override val i18nKey: String?
        get() = "fibu.periodOfPerformance.type." + key

    companion object {
        fun safeValueOf(name: String?): PeriodOfPerformanceType? {
            name ?: return null
            return PeriodOfPerformanceType.entries.firstOrNull { it.name == name }
        }
    }
}

Historique Git

868d6abb7 2025 -> 2026
63081666f En-têtes des fichiers source : 2024 -> 2025.
567ca70cd Migration en cours... spring.datasource.hikari.auto-commit=false

868d6abb7

2025 -> 2026
868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
index 9de2af15d..4285390e0 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
@@ -3,7 +3,7 @@
 // Projet ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2025 Micromata GmbH, Allemagne (www.micromata.com)
+// Copyright (C) 2001-2026 Micromata GmbH, Allemagne (www.micromata.com)
 //
 // ProjectForge est sous double licence.
 //

63081666f

En-têtes des fichiers source : 2024 -> 2025.
63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
index 9edc27193..9de2af15d 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
@@ -3,7 +3,7 @@
 // Projet ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2024 Micromata GmbH, Allemagne (www.micromata.com)
+// Copyright (C) 2001-2025 Micromata GmbH, Allemagne (www.micromata.com)
 //
 // ProjectForge est sous double licence.
 //

567ca70cd

Migration en cours... spring.datasource.hikari.auto-commit=false
567ca70cd5ad507d37387b71201cc5b01f2c436f
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
new file mode 100644
index 000000000..9edc27193
--- /dev/null
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/fibu/PeriodOfPerformanceType.kt
@@ -0,0 +1,64 @@
+/////////////////////////////////////////////////////////////////////////////
+//
+// Projet ProjectForge Community Edition
+//         www.projectforge.org
+//
+// Copyright (C) 2001-2024 Micromata GmbH, Allemagne (www.micromata.com)
+//
+// ProjectForge est sous double licence.
+//
+// Cette édition communautaire est un logiciel libre ; vous pouvez la redistribuer et/ou
+// la modifier selon les termes de la GNU General Public License telle que publiée
+// par la Free Software Foundation ; version 3 de la Licence.
+//
+// Cette édition communautaire est distribuée dans l'espoir qu'elle sera utile,
+// mais SANS AUCUNE GARANTIE ; sans même la garantie implicite de
+// QUALITÉ MARCHANDE ou d'ADÉQUATION À UN USAGE PARTICULIER. Voir la GNU General
+// Public License pour plus de détails.
+//
+// Vous devriez avoir reçu une copie de la GNU General Public License avec
+// ce programme ; sinon, consultez http://www.gnu.org/licenses/.
+//
+/////////////////////////////////////////////////////////////////////////////
+
+package org.projectforge.business.fibu
+
+import org.projectforge.common.i18n.I18nEnum
+
+enum class PeriodOfPerformanceType(key: String) : I18nEnum {
+    SEEABOVE("seeabove"),
+    OWN("own");
+
+    private val key: String
+
+    /**
+     * La clé sera utilisée par exemple pour l'i18n.
+     * @return
+     */
+    fun getKey(): String {
+        return key
+    }
+
+    init {
+        this.key = key
+    }
+
+    fun isIn(vararg status: PeriodOfPerformanceType?): Boolean {
+        for (st in status) {
+            if (this == st) {
+                return true
+            }
+        }
+        return false
+    }