Class UserContextImpl
- java.lang.Object
-
- de.hybris.platform.datahubbackoffice.service.datahub.impl.UserContextImpl
-
- All Implemented Interfaces:
UserContext
public class UserContextImpl extends java.lang.Object implements UserContext
-
-
Constructor Summary
Constructors Constructor Description UserContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserModelgetCurrentUser()booleanisMemberOf(java.lang.String userGroup)Verifies whether the context user belongs to the specified user group.booleanisUserDataHubAdmin()voidsetUserService(UserService userService)
-
-
-
Method Detail
-
getCurrentUser
public UserModel getCurrentUser()
- Specified by:
getCurrentUserin interfaceUserContext- Returns:
- the currently logged in user
-
isUserDataHubAdmin
public boolean isUserDataHubAdmin()
- Specified by:
isUserDataHubAdminin interfaceUserContext- Returns:
- whether the currently logged in user part of the Data Hub Admin Group
-
isMemberOf
public boolean isMemberOf(java.lang.String userGroup)
Description copied from interface:UserContextVerifies whether the context user belongs to the specified user group.- Specified by:
isMemberOfin interfaceUserContext- Parameters:
userGroup- name of the user group to check for.- Returns:
true, if the context user belongs to the specified group;falseotherwise.
-
setUserService
public void setUserService(UserService userService)
-
-