EN · DE · RU · FR · ES

#1128: UserRightId.kt

projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt Класс Kotlin, projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt 158 строк · 99 кода · 31 комментарий · 28 пустых
Назначение: Исходный файл: projectforge/business/user/UserRightId.kt. UserRightId.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.business.user

import org.hibernate.search.mapper.pojo.bridge.mapping.annotation.TypeBinderRef
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.TypeBinding
import org.projectforge.framework.persistence.api.IUserRightId
import org.projectforge.framework.persistence.api.RightRightIdProviderService
import java.util.*

/**
 * @author Kai Reinhard (k.reinhard@micromata.de)
 */
@Indexed //@ClassBridge(index = Index.YES /* TOKENIZED */, store = Store.NO, impl = HibernateSearchUserRightIdBridge.class)
@TypeBinding(binder = TypeBinderRef(type = HibernateSearchUserRightIdTypeBinder::class))
enum class UserRightId
/**
 * @param id          Must be unique (including all plugins).
 * @param orderString For displaying the rights in e. g. UserEditPage in the correct order.
 * @param i18nKey
 */(override val id: String, override val orderString: String, override val i18nKey: String) : IUserRightId {
    //For test fix. Has to be removed.
    TEST("", "", ""),

    ADMIN_CORE(
        "ADMIN_CORE", "admin",
        "access.right.admin.core"
    ),

    FIBU_EINGANGSRECHNUNGEN(
        "FIBU_EINGANGSRECHNUNGEN", "fibu1",
        "access.right.fibu.eingangsrechnungen"
    ),

    FIBU_AUSGANGSRECHNUNGEN(
        "FIBU_AUSGANGSRECHNUNGEN", "fibu2",
        "access.right.fibu.ausgangsrechnungen"
    ),

    FIBU_DATEV_IMPORT(
        "FIBU_DATEV_IMPORT", "fibu5",
        "access.right.fibu.datevImport"
    ),

    FIBU_COST_UNIT(
        "FIBU_COST_UNIT", "fibu6",
        "access.right.fibu.costUnit"
    ),

    FIBU_ACCOUNTS(
        "FIBU_ACCOUNTS", "fibu7",
        "access.right.fibu.accounts"
    ),

    FIBU_CURRENCY_CONVERSION(
        "FIBU_CURRENCY_CONVERSION", "fibu8",
        "access.right.fibu.currencyConversion"
    ),

    MISC_ADDRESSBOOK("MISC_ADDRESSBOOK", "misc2", "access.right.misc.addressbook"),

    PM_GANTT("PM_GANTT", "pm1", "access.right.pm.gantt"),

    PM_ORDER_BOOK("PM_ORDER_BOOK", "pm2", "access.right.pm.orderbook"),

    PM_HR_PLANNING(
        "PM_HR_PLANNING", "pm3",
        "access.right.pm.hrPlanning"
    ),

    PM_PROJECT("PM_PROJECT", "pm4", "access.right.pm.project"),

    ORGA_CONTRACTS(
        "ORGA_CONTRACTS", "orga1",
        "access.right.orga.contracts"
    ),

    ORGA_INCOMING_MAIL(

История Git

868d6abb7 2025 -> 2026
bd69407de Начальная ревизия с Claude Code.
63081666f Заголовки исходных файлов: 2024-> 2025.
e33c8b9c2 Миграция в процессе...

868d6abb7

2025 -> 2026
868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
index 1c508a313..139633685 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.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.
 //

bd69407de

Начальная ревизия с Claude Code.
bd69407de24b13f9b2072d0daaeb1f2a53cea73b
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
index 26ed597f0..1c508a313 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
@@ -74,6 +74,11 @@ enum class UserRightId
         "access.right.fibu.accounts"
     ),
 
+    FIBU_CURRENCY_CONVERSION(
+        "FIBU_CURRENCY_CONVERSION", "fibu8",
+        "access.right.fibu.currencyConversion"
+    ),
+
     MISC_ADDRESSBOOK("MISC_ADDRESSBOOK", "misc2", "access.right.misc.addressbook"),
 
     PM_GANTT("PM_GANTT", "pm1", "access.right.pm.gantt"),

63081666f

Заголовки исходных файлов: 2024-> 2025.
63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
index 1f0631d1f..26ed597f0 100644
--- a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.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.
 //

e33c8b9c2

Миграция в процессе...
e33c8b9c2038eb279e10b807ac6e52e41466b680
diff --git a/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
new file mode 100644
index 000000000..1f0631d1f
--- /dev/null
+++ b/projectforge-business/src/main/kotlin/org/projectforge/business/user/UserRightId.kt
@@ -0,0 +1,153 @@
+/////////////////////////////////////////////////////////////////////////////
+//
+// Project ProjectForge Community Edition
+//         www.projectforge.org
+//
+// Copyright (C) 2001-2024 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.business.user
+
+import org.hibernate.search.mapper.pojo.bridge.mapping.annotation.TypeBinderRef
+import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed
+import org.hibernate.search.mapper.pojo.mapping.definition.annotation.TypeBinding
+import org.projectforge.framework.persistence.api.IUserRightId
+import org.projectforge.framework.persistence.api.RightRightIdProviderService
+import java.util.*
+
+/**
+ * @author Kai Reinhard (k.reinhard@micromata.de)
+ */
+@Indexed //@ClassBridge(index = Index.YES /* TOKENIZED */, store = Store.NO, impl = HibernateSearchUserRightIdBridge.class)
+@TypeBinding(binder = TypeBinderRef(type = HibernateSearchUserRightIdTypeBinder::class))
+enum class UserRightId
+/**
+ * @param id          Must be unique (including all plugins).
+ * @param orderString For displaying the rights in e. g. UserEditPage in the correct order.
+ * @param i18nKey
+ */(override val id: String, override val orderString: String, override val i18nKey: String) : IUserRightId {
+    //For test fix. Has to be removed.
+    TEST("", "", ""),
+
+    ADMIN_CORE(
+        "ADMIN_CORE", "admin",
+        "access.right.admin.core"
+    ),
+
+    FIBU_EINGANGSRECHNUNGEN(
+        "FIBU_EINGANGSRECHNUNGEN", "fibu1",