#1082: TaskFormatter.kt

projectforge-business/src/main/kotlin/org/projectforge/business/task/TaskFormatter.kt Formatting Utility / Task Display, projectforge-business/src/main/kotlin/org/projectforge/business/task/TaskFormatter.kt 156 lines · 107 code · 41 comments · 8 blank
Static utility for formatting task paths and statuses. getTaskPath() builds "task1 -> task2 -> task3" style paths from a task id, optionally to a specific ancestor, with HTML/XML/PLAIN output modes and an abbreviation feature (extracts first letters for compaction). getFormattedTaskStatus() renders TaskStatus as an HTML span with CSS classes. Private helper asShortForm() compresses array elements to first-letter sequences when total length exceeds limit. Extends AbstractFormatter for i18n access.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
53b501ab6 Example scripts fixed. TimesheetDO.getDuration() -> TimesheetDO.duration.
a72903e36 *.java, *.kt: StringBuffer -> StringBuilder.
e66d5f5f7 Migration stuff in progress... TaskTree -> Kotlin and runs now in isolated entity manager
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
67ce75fe9 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
73b0be50b org.apache.commons.collections -> org.apache.commons.collections4
83c9c7098 WIP: BigCalendar -> Fullcalendar

#1082: TaskFormatter.kt

Formatting Utility / Task Display, projectforge-business/src/main/kotlin/org/projectforge/business/task/TaskFormatter.kt
Static utility for formatting task paths and statuses. getTaskPath() builds "task1 -> task2 -> task3" style paths from a task id, optionally to a specific ancestor, with HTML/XML/PLAIN output modes and an abbreviation feature (extracts first letters for compaction). getFormattedTaskStatus() renders TaskStatus as an HTML span with CSS classes. Private helper asShortForm() compresses array elements to first-letter sequences when total length exceeds limit. Extends AbstractFormatter for i18n access.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
53b501ab6 Example scripts fixed. TimesheetDO.getDuration() -> TimesheetDO.duration.
a72903e36 *.java, *.kt: StringBuffer -> StringBuilder.
e66d5f5f7 Migration stuff in progress... TaskTree -> Kotlin and runs now in isolated entity manager
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
67ce75fe9 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
73b0be50b org.apache.commons.collections -> org.apache.commons.collections4
83c9c7098 WIP: BigCalendar -> Fullcalendar