#655: AccessCheckerImpl.java

projectforge-business/src/main/java/org/projectforge/framework/access/AccessCheckerImpl.java Access Checker, projectforge-business/src/main/java/org/projectforge/framework/access/AccessCheckerImpl.java 853 lines · 502 code · 280 comments · 71 blank
Security access checker implementing fine-grained permission checks for a specific module or operation.

Git History

868d6abb7 2025 -> 2026
11dbfab8c Userright handling in PFUserDO and UserGroupCache improved (rights of user may not be initialized).
63081666f Source file headers: 2024-> 2025.
d67bce18b Migration stuff in progress...
67805f2fc ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code).
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
c1d14ecdb Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f9658941 UserRight.isConfigurable/getAvailableValues/matches(UserGroupCache, ...) -> isConfigurable/...(..., Collection<GroupDO>...) UserGroovyRight removed.
1678d3fe1 UserRight.isAvailable(UserGroupCache, ...) -> isAvailable(..., Collection<GroupDO>...)
5f7ef41b8 Copyright 2021 -> 2022
c0f2b9de0 Tenants functionality removed everywhere (untested).
ceb63e8a1 Source code header: (C) 2001-2021.
6129b1709 AccessCheckerImpl.areUsersInSameGroup: fixed if no groups are given.
a278ea05f SourceFileCheckerTest added.
01bd74a89 AccessChecker.isLoggedInUserMemberOfGroup(boolean, ProjectForgeGroup...)
7c79f1922 Copyright of source header -> 2020.
08225154f Bugfix in AccessCheckerImpl.hasRight(final PFUserDO origUser, final IUserRightId rightId, final boolean throwException, UserRightValue... values)
b66248fae Heavy WIP:JPA
2609f511f Heavy WIP: session -> em
73a9755df More code cleanup: - Collapsed catch blocks that did the exact same things - Replaced ArrayList<Class> with ArrayList<> - Replaced StringBuffer with StringBuilder - Removed a few usages of deprecated classes (mainly HSSFColors in Excel) - Replace Collections.sort with List.sort
97991a2c4 Revert "Simplify boolean return statements (business)"
40480b54d Simplify boolean return statements (business)
000ca723d Remove pointless boolean expressions (business)
0910a4935 Compile errors after merge fixed (tests are all in the green arc).
b31e4594f Merge branch 'develop-6' into develop
1a6c58ed1 AccessCheckerImp.isRestrictedUser(Integer) handles now internal test users correct (id < 0).
b0e00ebaa AccessCheckerImpl.isRestrictedUser(): NPE fix.
3db756bca AccessCheckerImpl: Check of restricted user fixed.

#655: AccessCheckerImpl.java

Access Checker, projectforge-business/src/main/java/org/projectforge/framework/access/AccessCheckerImpl.java
Security access checker implementing fine-grained permission checks for a specific module or operation.

Git History

868d6abb7 2025 -> 2026
11dbfab8c Userright handling in PFUserDO and UserGroupCache improved (rights of user may not be initialized).
63081666f Source file headers: 2024-> 2025.
d67bce18b Migration stuff in progress...
67805f2fc ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code).
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
c1d14ecdb Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f9658941 UserRight.isConfigurable/getAvailableValues/matches(UserGroupCache, ...) -> isConfigurable/...(..., Collection<GroupDO>...) UserGroovyRight removed.
1678d3fe1 UserRight.isAvailable(UserGroupCache, ...) -> isAvailable(..., Collection<GroupDO>...)
5f7ef41b8 Copyright 2021 -> 2022
c0f2b9de0 Tenants functionality removed everywhere (untested).
ceb63e8a1 Source code header: (C) 2001-2021.
6129b1709 AccessCheckerImpl.areUsersInSameGroup: fixed if no groups are given.
a278ea05f SourceFileCheckerTest added.
01bd74a89 AccessChecker.isLoggedInUserMemberOfGroup(boolean, ProjectForgeGroup...)
7c79f1922 Copyright of source header -> 2020.
08225154f Bugfix in AccessCheckerImpl.hasRight(final PFUserDO origUser, final IUserRightId rightId, final boolean throwException, UserRightValue... values)
b66248fae Heavy WIP:JPA
2609f511f Heavy WIP: session -> em
73a9755df More code cleanup: - Collapsed catch blocks that did the exact same things - Replaced ArrayList<Class> with ArrayList<> - Replaced StringBuffer with StringBuilder - Removed a few usages of deprecated classes (mainly HSSFColors in Excel) - Replace Collections.sort with List.sort
97991a2c4 Revert "Simplify boolean return statements (business)"
40480b54d Simplify boolean return statements (business)
000ca723d Remove pointless boolean expressions (business)
0910a4935 Compile errors after merge fixed (tests are all in the green arc).
b31e4594f Merge branch 'develop-6' into develop
1a6c58ed1 AccessCheckerImp.isRestrictedUser(Integer) handles now internal test users correct (id < 0).
b0e00ebaa AccessCheckerImpl.isRestrictedUser(): NPE fix.
3db756bca AccessCheckerImpl: Check of restricted user fixed.