#1081: TaskFavoritesService.kt

projectforge-business/src/main/kotlin/org/projectforge/business/task/TaskFavoritesService.kt Service / Favorites, projectforge-business/src/main/kotlin/org/projectforge/business/task/TaskFavoritesService.kt 75 lines · 43 code · 22 comments · 10 blank
Spring @Component managing user-specific task favorites via UserPrefDao. Uses the legacy UserPref storage (area "TASK_FAVORITE", parameter "task"). getList() returns TaskFavorite items from user preferences, selectTaskId() retrieves the taskId stored for a favorite, createFavorite()/deleteFavorite()/renameFavorite() use the Favorites helper to manage entries. TaskId is stored as a string and parsed back on retrieval.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
011000f03 Migration stuff in progress... (all tests of all packages: OK).
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
7c79f1922 Copyright of source header -> 2020.
3737fdcad WIP: Favorites.
fadbfeb2c WIP: MagicFilter, currentFilter, favorites, UserPrefCache/Dao...
6035ac70a WIP: favorites and magic filter.
a7bc98bdd Json serialization: UtilDateConverter re-used for ToString, Rest and UserPrefDao. WIP: UserPrefCache...
005fb5094 WIP: UserPrefs...
cbdc3c014 WIP: UserPref: support of json serialízation and deserialization.
8b8a2a557 Copyright header of source files fixed.
21d9fe231 Renamed: UserPreferencesService -> UserXmlPreferencesService.
4067b80c5 WIP: Task favorites...