Uses of Class
edu.cnm.deepdive.interviewprep.model.entity.Question
-
-
Uses of Question in edu.cnm.deepdive.interviewprep.controller
Methods in edu.cnm.deepdive.interviewprep.controller that return Question Modifier and Type Method Description Question
QuestionController. get(UUID externalKey)
This method defines the behavior of a GET request to the URL /interviewprep/questions/externalKey.Question
QuestionController. getRandom()
This method defines the behavior of a GET request to the URL /interviewprep/questions/random.Question
QuestionController. post(Question question)
This method defines the behavior of a POST request to the URL /interviewprep/questions.Question
QuestionController. put(UUID questionId, Question question)
This method defines the behavior of a PUT request to the URL /interviewprep/questions/questionid.Methods in edu.cnm.deepdive.interviewprep.controller that return types with arguments of type Question Modifier and Type Method Description Iterable<Question>
QuestionController. get()
This method defines the behavior of a GET request to the URL /interviewprep/questions.Methods in edu.cnm.deepdive.interviewprep.controller with parameters of type Question Modifier and Type Method Description Question
QuestionController. post(Question question)
This method defines the behavior of a POST request to the URL /interviewprep/questions.Question
QuestionController. put(UUID questionId, Question question)
This method defines the behavior of a PUT request to the URL /interviewprep/questions/questionid. -
Uses of Question in edu.cnm.deepdive.interviewprep.model.dao
Methods in edu.cnm.deepdive.interviewprep.model.dao that return types with arguments of type Question Modifier and Type Method Description Optional<List<Question>>
QuestionRepository. findAllBySource(String source)
Returns a list ofQuestion
objects identified by the source.Optional<Question>
QuestionRepository. findByExternalKey(UUID externalKey)
Returns aQuestion
object that matches the external key.Optional<Question>
QuestionRepository. findByExternalKeyAndUser(UUID externalKey, User user)
Returns aQuestion
object that matches the external key and user id.Optional<Question>
QuestionRepository. findRandom()
Returns a randomQuestion
object from the database. -
Uses of Question in edu.cnm.deepdive.interviewprep.model.entity
Methods in edu.cnm.deepdive.interviewprep.model.entity that return types with arguments of type Question Modifier and Type Method Description List<Question>
User. getQuestions()
Returns a list of questions from the database. -
Uses of Question in edu.cnm.deepdive.interviewprep.service
Methods in edu.cnm.deepdive.interviewprep.service that return Question Modifier and Type Method Description Question
QuestionService. createQuestion(Question question, User user)
Creates a newQuestion
object in the database for the current user.Question
QuestionService. getRandomQuestion()
Returns a randomQuestion
object from the database.Question
QuestionService. saveQuestion(Question question, User user)
Saves aQuestion
object to the database for the current user.Methods in edu.cnm.deepdive.interviewprep.service that return types with arguments of type Question Modifier and Type Method Description Optional<Question>
QuestionService. get(UUID externalKey)
Gets the current Question object records from the database identified by external key.Optional<Question>
QuestionService. get(UUID externalKey, User user)
Returns aQuestion
object identified by the external key for the current user.List<Question>
QuestionService. getQuestions()
Returns a list of allQuestion
in the database.Optional<Question>
QuestionService. updateQuestion(UUID externalKey, Question question, User user)
Updates aQuestion
object to the database for the current user.Methods in edu.cnm.deepdive.interviewprep.service with parameters of type Question Modifier and Type Method Description Question
QuestionService. createQuestion(Question question, User user)
Creates a newQuestion
object in the database for the current user.Question
QuestionService. saveQuestion(Question question, User user)
Saves aQuestion
object to the database for the current user.Optional<Question>
QuestionService. updateQuestion(UUID externalKey, Question question, User user)
Updates aQuestion
object to the database for the current user.
-