Interface IAuthenticatedUserProvider

  • All Known Implementing Classes:
    UserAuthentication

    public interface IAuthenticatedUserProvider
    Provider interface to retrieve an authenticated user for a client or application session.
    Author:
    Christopher Mindus
    • Method Detail

      • getUser

        IAuthenticatedUser getUser​(java.lang.String userName)
        Gets the instance of a user with its information.
        Parameters:
        userName - The user name.
        Returns:
        The instance holding the potentially authenticated user, or null if the user does not exist in the server's database.
        Throws:
        java.lang.NullPointerException - If the userName is null.
      • getUser

        IAuthenticatedUser getUser​(long id)
        Gets the basic user info for a user from its unique user ID. The value comes from UserInfoBase.id.
        Parameters:
        id - The unique user ID.
        Returns:
        The user information, or null if not found.
      • getUserLocations

        java.util.List<UserLocation> getUserLocations()
        Finds locations of all users.