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 UserUserController. 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 aUserobject that matches the external key.Optional<User>UserRepository. findByOauthKey(String oauthKey)Returns aUserobject that matches the OAuth key.Iterable<User>UserRepository. getAllByOrderByDisplayNameAsc()Returns a list ofUserobjects 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 aQuestionobject 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 UserQuestion. 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 voidQuestion. 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 UserUserService. getCurrentUser()Gets a currentUserobject from the database.UserUserService. getOrCreate(String oauthKey, String displayName)Queries the database for aUserobject defined by Oauth key.UserUserService. save(User user)Saves a User object to the database.UserUserService. update(User updateUser, User user)Updates the currentUserobject 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 aUserobject that matches the id.Iterable<User>UserService. getAll()Returns a list ofUserordered by display name in ascending order.Optional<User>UserService. getByExternalKey(UUID externalKey)Returns aUserthat matches the external key.Methods in edu.cnm.deepdive.interviewprep.service with parameters of type User Modifier and Type Method Description QuestionQuestionService. createQuestion(Question question, User user)Creates a newQuestionobject in the database for the current user.voidQuestionService. delete(UUID externalKey, User user)Deletes aQuestionobject identified by external key for the current user.voidUserService. delete(User user)Deletes aUserobject that matches the parameter user from the database.Optional<Question>QuestionService. get(UUID externalKey, User user)Returns aQuestionobject identified by the external key for the current user.UserUserService. save(User user)Saves a User object to the database.QuestionQuestionService. saveQuestion(Question question, User user)Saves aQuestionobject to the database for the current user.UserUserService. update(User updateUser, User user)Updates the currentUserobject 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 aQuestionobject to the database for the current user.
-