#919: EmployeeActiveFilter.kt

projectforge-business/src/main/kotlin/org/projectforge/business/fibu/EmployeeActiveFilter.kt Type: Custom Result Filter · Purpose: Filters a list to only active employees · Path: projectforge-business/src/main/kotlin/org/projectforge/business/fibu/EmployeeActiveFilter.kt 42 lines · 13 code · 25 comments · 4 blank
Implements CustomResultFilter<EmployeeDO>. Used to filter lists of employees to only those that are currently active. Delegates to EmployeeService.isEmployeeActive() with showRecentlyLeavers=true. Obtains the EmployeeService bean via Spring's ApplicationContextProvider at class-load time (stored in a companion object).

Design

Single method match(list, element) delegates entirely to the service layer. The lazy employeeService is obtained once and held statically. This filter is useful in places like vacation management UIs where only active employees should be selectable.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
1204b927b Migration stuff in progress... (all tests of all packages: OK).
9e38d3c0d Migration stuff in progress...
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
0d183e5df Migration stuff in progress...
923f5c64b Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
d141a9988 WIP: Vacation: other substitutes
1dcd42a3d Vacation: other substitutes implemented. Formatter.SHOW_DISPLAYNAME and Formatter.SHOW_LIST_OF_DISPLAYNAMES implemented.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
031853218 VacationYearFilter added.
bc0a52bc7 Vacation stuff...
b2657ec3a Vacation list, MagicFilterProcessort supports now I18nEnum values.
7c79f1922 Copyright of source header -> 2020.
dd5ca38ac CopyRight of all java file-header updated or created.
2d86a8cd6 PROJECTFORGE-2306 Refactorings for keeping access check at update time
9ebb88522 Initial commit