Uses of Class
edu.cnm.deepdive.interviewprep.model.entity.User
-
Packages that use User Package Description edu.cnm.deepdive.interviewprep.controller edu.cnm.deepdive.interviewprep.model.dao edu.cnm.deepdive.interviewprep.model.entity edu.cnm.deepdive.interviewprep.service -
-
Uses of User in edu.cnm.deepdive.interviewprep.controller
Methods in edu.cnm.deepdive.interviewprep.controller that return User Modifier and Type Method Description User
UserController. me()
This method defines the behavior of a GET request to the URL /interviewprep/users/me. -
Uses of User in edu.cnm.deepdive.interviewprep.model.dao
Methods in edu.cnm.deepdive.interviewprep.model.dao that return types with arguments of type User Modifier and Type Method Description Optional<User>
UserRepository. findByExternalKey(UUID externalKey)
Returns aUser
object that matches the external key.Optional<User>
UserRepository. findByOauthKey(String oauthKey)
Returns aUser
object that matches the OAuth key.Iterable<User>
UserRepository. getAllByOrderByDisplayNameAsc()
Returns a list ofUser
objects ordered by display name in ascending order.Methods in edu.cnm.deepdive.interviewprep.model.dao with parameters of type User Modifier and Type Method Description Optional<Question>
QuestionRepository. findByExternalKeyAndUser(UUID externalKey, User user)
Returns aQuestion
object that matches the external key and user id. -
Uses of User in edu.cnm.deepdive.interviewprep.model.entity
Methods in edu.cnm.deepdive.interviewprep.model.entity that return User Modifier and Type Method Description User
Question. getUser()
Returns a User object for this instance.Methods in edu.cnm.deepdive.interviewprep.model.entity with parameters of type User Modifier and Type Method Description void
Question. setUser(User user)
Sets a User object for this instance. -
Uses of User in edu.cnm.deepdive.interviewprep.service
Methods in edu.cnm.deepdive.interviewprep.service that return User Modifier and Type Method Description User
UserService. getCurrentUser()
Gets a currentUser
object from the database.User
UserService. getOrCreate(String oauthKey, String displayName)
Queries the database for aUser
object defined by Oauth key.User
UserService. save(User user)
Saves a User object to the database.User
UserService. update(User updateUser, User user)
Updates the currentUser
object records from the provided updated User record, and saves the result to the database.Methods in edu.cnm.deepdive.interviewprep.service that return types with arguments of type User Modifier and Type Method Description Optional<User>
UserService. get(UUID id)
Returns aUser
object that matches the id.Iterable<User>
UserService. getAll()
Returns a list ofUser
ordered by display name in ascending order.Optional<User>
UserService. getByExternalKey(UUID externalKey)
Returns aUser
that matches the external key.Methods in edu.cnm.deepdive.interviewprep.service with parameters of type User Modifier and Type Method Description Question
QuestionService. createQuestion(Question question, User user)
Creates a newQuestion
object in the database for the current user.void
QuestionService. delete(UUID externalKey, User user)
Deletes aQuestion
object identified by external key for the current user.void
UserService. delete(User user)
Deletes aUser
object that matches the parameter user from the database.Optional<Question>
QuestionService. get(UUID externalKey, User user)
Returns aQuestion
object identified by the external key for the current user.User
UserService. save(User user)
Saves a User object to the database.Question
QuestionService. saveQuestion(Question question, User user)
Saves aQuestion
object to the database for the current user.User
UserService. update(User updateUser, User user)
Updates the currentUser
object records from the provided updated User record, and saves the result to the database.Optional<Question>
QuestionService. updateQuestion(UUID externalKey, Question question, User user)
Updates aQuestion
object to the database for the current user.
-