Interface UserContext
-
- All Known Implementing Classes:
UserContextImpl
public interface UserContextA service containing context of the which user is logged in
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserModelgetCurrentUser()booleanisMemberOf(java.lang.String userGroup)Verifies whether the context user belongs to the specified user group.booleanisUserDataHubAdmin()
-
-
-
Method Detail
-
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
boolean isMemberOf(java.lang.String userGroup)
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.
-
-