java.lang.Object
de.hybris.platform.datahubbackoffice.service.datahub.impl.UserContextImpl
All Implemented Interfaces:
UserContext, Serializable

public class UserContextImpl extends Object implements UserContext, Serializable
Stateful service for retrieving information about the user in the context of a web request.
See Also:
  • Constructor Details

    • UserContextImpl

      public UserContextImpl()
  • Method Details

    • getCurrentUser

      public UserModel getCurrentUser()
      Specified by:
      getCurrentUser in interface UserContext
      Returns:
      the currently logged in user
    • isUserDataHubAdmin

      public boolean isUserDataHubAdmin()
      Specified by:
      isUserDataHubAdmin in interface UserContext
      Returns:
      whether the currently logged in user part of the Data Hub Admin Group
    • isMemberOf

      public boolean isMemberOf(String userGroup)
      Description copied from interface: UserContext
      Verifies whether the context user belongs to the specified user group.
      Specified by:
      isMemberOf in interface UserContext
      Parameters:
      userGroup - name of the user group to check for.
      Returns:
      true, if the context user belongs to the specified group; false otherwise.
    • setUserService

      public void setUserService(UserService userService)