Interface UserRepositoryReadOnly

All Known Implementing Classes:
UserRepositoryImpl

public interface UserRepositoryReadOnly
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int id)
    Finds the user identified by id in the database
  • Method Details

    • get

      User get(int id) throws NotFoundException
      Finds the user identified by id in the database
      Parameters:
      id - the id of the user to be found
      Returns:
      an instance of User if there is a user identified by id, null otherwise
      Throws:
      NotFoundException - if no user identified by the id has been found