public class UserContextImpl extends java.lang.Object implements UserContext
| Constructor and Description |
|---|
UserContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
UserModel |
getCurrentUser() |
boolean |
isMemberOf(java.lang.String userGroup)
Verifies whether the context user belongs to the specified user group.
|
boolean |
isUserDataHubAdmin() |
void |
setUserService(UserService userService) |
public UserModel getCurrentUser()
getCurrentUser in interface UserContextpublic boolean isUserDataHubAdmin()
isUserDataHubAdmin in interface UserContextpublic boolean isMemberOf(java.lang.String userGroup)
UserContextisMemberOf in interface UserContextuserGroup - name of the user group to check for.true, if the context user belongs to the specified group; false otherwise.public void setUserService(UserService userService)
Copyright © 2018 SAP SE. All Rights Reserved.