Interface UserContext
- All Known Implementing Classes:
UserContextImpl
public interface UserContext
A service containing context of the which user is logged in
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisMemberOf(String userGroup) Verifies whether the context user belongs to the specified user group.boolean
-
Method Details
-
getCurrentUser
UserModel getCurrentUser()- Returns:
- the currently logged in user
-
isUserDataHubAdmin
boolean isUserDataHubAdmin()- Returns:
- whether the currently logged in user part of the Data Hub Admin Group
-
isMemberOf
Verifies whether the context user belongs to the specified user group.- Parameters:
userGroup- name of the user group to check for.- Returns:
true, if the context user belongs to the specified group;falseotherwise.
-