#1406: MenuItemDef.kt
projectforge-business/src/main/kotlin/org/projectforge/menu/builder/MenuItemDef.kt Data Class/Service, projectforge-business/src/main/kotlin/org/projectforge/menu/builder/MenuItemDef.kt 166 lines · 108 code · 45 comments · 13 blank
Definition of a single menu item used by MenuCreator to dynamically build user menus. Holds id, i18nKey, url, badgeCounter function, badgeTooltipKey, access check lambda, required groups and user rights. Supports hierarchical structure with children. The createMenu() method instantiates a MenuItem with translated title, unique key, and optional badge.
Git History
868d6abb7 2025 -> 2026
ee32b3e3a Code deprecations.
261354a30 Visibility of menu items is now configurable (by groups).
46ec387f5 MenuItemDef.requiredUserRight removed
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022
619addd5c Doubled menu creation fixed
ceb63e8a1 Source code header: (C) 2001-2021.
685d7f9cc rest: optimizations for usage from Java classes.
6c67f4f91 MenuItemDefId supports now url.
7c79f1922 Copyright of source header -> 2020.
611a8aaee Refactored (java, kt, less, jsx): childs -> children.
05244ff19 CopyRight of all Kotlin file-header updated or created.