EN · DE · RU · FR · ES

#818: BirthdayButlerConfiguration.kt

projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt Класс Kotlin, projectforge-business/src/main/kotlin/org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt 43 строки · 15 кода · 22 комментария · 6 пустых
Назначение: Исходный файл: org/projectforge/birthdaybutler/BirthdayButlerConfiguration.kt. BirthdayButlerConfiguration.kt является частью приложения управления проектами с открытым исходным кодом ProjectForge.

Исходный код (первые 100 строк)

/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
//         www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation; version 3 of the License.
//
// This community edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, see 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

868d6abb7 2025 -> 2026
63081666f Заголовки исходных файлов: 2024 -> 2025.
b6092df09 Авторские права 2023 -> 2024
a487a9cd9 BirthdayList -> BirthdayButler, реализована языковая конфигурация для писем.

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 is dual-licensed.
 //

63081666f

Заголовки исходных файлов: 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 is dual-licensed.
 //

b6092df09

Авторские права 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 is dual-licensed.
 //

a487a9cd9

BirthdayList -> BirthdayButler, реализована языковая конфигурация для писем.
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 is dual-licensed.
+//
+// This community edition is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as published
+// by the Free Software Foundation; version 3 of the License.
+//
+// This community edition is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+// Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this program; if not, see 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()
+    }
+}