UserDao.ktExtends BaseDao. Adds user-specific queries: findByUsername(), findByEmail(), findActiveUsers(), authenticate() (password verification).
Implements access checks: only admins can see all users; regular users see themselves and users in shared groups. Updates trigger cache invalidation on UserGroupCache and UserPrefCache.
Core user persistence is centralized here to ensure consistent password hashing, status checks, and access control enforcement across all user operations.
| Commit | What changed |
|---|---|
868d6abb75 | 2025 -> 2026 |
11dbfab8c3 | Userright handling in PFUserDO and UserGroupCache improved (rights of user may not be initialized). |
63081666f6 | Source file headers: 2024-> 2025. |
bbc198d030 | Migration stuff in progress... (all tests of all packages: OK). |
4bc37b3a14 | Migration stuff in progress... |
9e3c523c75 | Migration stuff in progress... (all tests of all packages: OK). |
c97135a57d | Migration stuff in progress... |
d18c899b51 | Refactoring of history entries, FlatDisplayHistoryEntries and DisplayHistoryEntries... |
b79a1edca5 | Migration stuff in progress... (all tests of all packages: OK). |
d67bce18b9 | Migration stuff in progress... |
5989b32fdb | BaseDao: mechanism of onChangeLister refactored. |
1b50060c3a | BaseDao: renamed: get -> find, save -> insert, getList -> select, load -> select |
87aaf6a5a5 | Migration stuff in progress... BaseDao refactored (not yet finished) internal* methods renamed. |
3aeda5ef5a | Big change: all save|update|...InTrans renamed (InTrans removed). PfPesistenceContext as param not needed anymore (ThreadLocal is used instead). (all tests of all packages: OK). |
67805f2fc1 | ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code). |
9e30522ba4 | Migration stuff in progress... (all tests of all packages: OK). |
85b4e11758 | PfPersistenceService and PfPersistenceContext: query renamed to executeQuery. |
f8e614f12a | DisplayHistoryEntry: new concept in progress... |
68688c1484 | DisplayHistoryEntry: new concept in progress... |
1135ccbca9 | Persistence: functions renamed: *NewTrans -> *InTrans |
108ecf6296 | !!!!! Big change of Transaction handling: Re-uses PfPersistenceContext as much as possible (not yet finished). Tests doesn't yet run. readonly-Transactions in PfPersistenceService removed, write-operations of PfPersistenceService removed. |
b095e6f7d1 | !!!!! Big change of Transaction handling: Re-uses PfPersistenceContext as much as possible (not yet finished). Tests doesn't yet run. |
f59810cf03 | Migration stuff in progress... |
4c04cfd652 | MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.) |
5bafe79416 | @Repository -> @Service. @Transactional-Annotations removed. |
ee7b7fe158 | Migration stuff in progress... |
f2f7cff74a | Migration stuff in progress... |
0d183e5df7 | Migration stuff in progress... |
9d8b94352e | Migration stuff in progress... |
a2f3f99b2e | Migration stuff in progress... |
67ce75fe95 | Migration stuff in progress... |
e33c8b9c20 | Migration stuff in progress... |