EN · DE · RU · FR · ES

#818: BirthdayButlerConfiguration.kt

projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt Kotlin-Klasse, projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt 43 Zeilen · 15 Code · 22 Kommentare · 6 Leerzeichen
Zweck: Quelldatei: org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt. BirthdayButlerConfiguration.kt ist Teil der Open-Source-Projektmanagement-Anwendung ProjectForge.

Quellcode (erste 100 Zeilen)

/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
//         www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//
// Diese Community-Edition ist freie Software; Sie können sie weiterverbreiten und/oder
// modifizieren unter den Bedingungen der GNU General Public License, wie sie von der
// Free Software Foundation veröffentlicht wurde; Version 3 der Lizenz.
//
// Diese Community-Edition wird in der Hoffnung verteilt, dass sie nützlich sein wird,
// aber OHNE JEDE GEWÄHRLEISTUNG; ohne die stillschweigende Gewährleistung der
// MARKTGÄNGIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die GNU General
// Public License für weitere Details.
//
// Sie sollten eine Kopie der GNU General Public License zusammen mit
// diesem Programm erhalten haben; falls nicht, siehe http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////

package org.projectforge.birthdaybutler

import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Configuration

@Configuration
open class BirthdayButlerConfiguration {
    @Value("\${projectforge.birthdaybutler.organization}")
    open lateinit var organization: String

    @Value("\${projectforge.birthdaybutler.emailAddresses}")
    open var emailAddresses: String? = null

    @Value("\${projectforge.birthdaybutler.locale}")
    open var locale: String? = null

    open fun isConfigured(): Boolean {
        return organization.isNotBlank()
    }
}

Git-Verlauf

868d6abb7 2025 -> 2026
63081666f Quelldatei-Header: 2024 -> 2025.
b6092df09 Copyright 2023 -> 2024
a487a9cd9 BirthdayList -> BirthdayButler, Sprachkonfiguration für E-Mails implementiert.

868d6abb7

2025 -> 2026
868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
index 1efcb5d49..2ae82bbea 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge ist dual-lizenziert.
 //

63081666f

Quelldatei-Header: 2024 -> 2025.
63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
index 7611e11b5..1efcb5d49 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge ist dual-lizenziert.
 //

b6092df09

Copyright 2023 -> 2024
b6092df0927c4a3b161e888445f31dcab57493f2
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
index 967e19dce..7611e11b5 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge ist dual-lizenziert.
 //

a487a9cd9

BirthdayList -> BirthdayButler, Sprachkonfiguration für E-Mails implementiert.
a487a9cd99fb395705bcea3204b710fe01441acc
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
new file mode 100644
index 000000000..967e19dce
--- /dev/null
+++ b/projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt
@@ -0,0 +1,43 @@
+/////////////////////////////////////////////////////////////////////////////
+//
+// Project ProjectForge Community Edition
+//         www.projectforge.org
+//
+// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
+//
+// ProjectForge ist dual-lizenziert.
+//
+// Diese Community-Edition ist freie Software; Sie können sie weiterverbreiten und/oder
+// modifizieren unter den Bedingungen der GNU General Public License, wie sie von der
+// Free Software Foundation veröffentlicht wurde; Version 3 der Lizenz.
+//
+// Diese Community-Edition wird in der Hoffnung verteilt, dass sie nützlich sein wird,
+// aber OHNE JEDE GEWÄHRLEISTUNG; ohne die stillschweigende Gewährleistung der
+// MARKTGÄNGIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die GNU General
+// Public License für weitere Details.
+//
+// Sie sollten eine Kopie der GNU General Public License zusammen mit
+// diesem Programm erhalten haben; falls nicht, siehe http://www.gnu.org/licenses/.
+//
+/////////////////////////////////////////////////////////////////////////////
+
+package org.projectforge.birthdaybutler
+
+import org.springframework.beans.factory.annotation.Value
+import org.springframework.context.annotation.Configuration
+
+@Configuration
+open class BirthdayButlerConfiguration {
+    @Value("\${projectforge.birthdaybutler.organization}")
+    open lateinit var organization: String
+
+    @Value("\${projectforge.birthdaybutler.emailAddresses}")
+    open var emailAddresses: String? = null
+
+    @Value("\${projectforge.birthdaybutler.locale}")
+    open var locale: String? = null
+
+    open fun isConfigured(): Boolean {
+        return organization.isNotBlank()
+    }
+}