Class UserContextImpl

  • All Implemented Interfaces:
    UserContext

    public class UserContextImpl
    extends java.lang.Object
    implements UserContext
    • Constructor Detail

      • UserContextImpl

        public UserContextImpl()
    • Method Detail

      • 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​(java.lang.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)