#1345: ThreadLocalUserContext.kt
projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/user/api/ThreadLocalUserContext.kt Service / Context, projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/user/api/ThreadLocalUserContext.kt 269 lines · 132 code · 110 comments · 27 blank
Thread-local storage for the currently authenticated user context, providing static access to the logged-in user's identity, roles, and locale across request processing.
Architecture Analysis
Resides in projectforge-business, the core module containing domain logic, services, and persistence. Typically annotated with @Service or @Component, managed by the Spring IoC container with dependency injection.
Git History
| Commit | What changed |
|---|
868d6abb75 | 2025 -> 2026 |
bbdb5825b2 | Scripts: exception -> log, UserContext.refreshUser() handling changed. |
96e97e7389 | Nothing real. |
00ec94e687 | New version of fr-opensagres-xdocreport-poi-xwpf-converter-pdf = "2.1.0" DataTransferBridge added for more convenient access of datatransfer from other modules (Merlin, business etc.), ThreadLocalUserContext improved for using inside Kotlin coroutines. |
63081666f6 | Source file headers: 2024-> 2025. |
1012e347af | Migration stuff in progress... (all tests of all packages: OK). |
67805f2fc1 | ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code). |
4c04cfd652 | MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.) |
4e52742455 | Migration stuff in progress... |
e33c8b9c20 | Migration stuff in progress... |
b6092df092 | Copyright 2023 -> 2024 |
ab45d51fa4 | Copyright 2001-2022 -> 2001-2023. |
7bc51ed170 | WIP: Jobs. |
38bec971af | ThreadLocal -> Kotlin |