Class UserContextImpl
java.lang.Object
de.hybris.platform.datahubbackoffice.service.datahub.impl.UserContextImpl
- All Implemented Interfaces:
UserContext,Serializable
Stateful service for retrieving information about the user in the context of a web request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMemberOf(String userGroup) Verifies whether the context user belongs to the specified user group.booleanvoidsetUserService(UserService userService)
-
Constructor Details
-
UserContextImpl
public UserContextImpl()
-
-
Method Details
-
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
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
-