Interface UserLoader

All Known Implementing Classes:
MysqlUserLoader

public interface UserLoader
Interface for loading users.
  • Method Details

    • loadUser

      Optional<User> loadUser(String username) throws Exception
      Load a user.
      Parameters:
      username - The username
      Returns:
      The user, if found, otherwise an empty Optional object.
      Throws:
      Exception - if there is a non-missing user error loading the user.
    • loadUserByID

      Optional<User> loadUserByID(Object id) throws Exception
      Load a user by its account ID
      Parameters:
      id - The identifier to use.
      Returns:
      The user, if found, otherwise an empty Optional object.
      Throws:
      Exception - if there is a non-missing user error loading the user.