All Known Implementing Classes:
UserContextImpl

public interface UserContext
A service containing context of the which user is logged in
  • Method Details

    • 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(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; false otherwise.