B C D E F G I J M N P Q S U
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- badRequest() - Method in class edu.cnm.deepdive.interviewprep.controller.ExceptionResponseMapping
-
This method handles an illegal argument exception from the rest endpoint and returns a user-friendly status code in the header response.
C
- Category - Class in edu.cnm.deepdive.interviewprep.model.entity
-
This is our Category entity class table.
- Category() - Constructor for class edu.cnm.deepdive.interviewprep.model.entity.Category
- CategoryController - Class in edu.cnm.deepdive.interviewprep.controller
-
This class creates REST endpoints that has access to the Question entity in the database through the Category services.
- CategoryController(CategoryService) - Constructor for class edu.cnm.deepdive.interviewprep.controller.CategoryController
-
Constructor that instantiates a new User service object.
- CategoryRepository - Interface in edu.cnm.deepdive.interviewprep.model.dao
-
This interface defines various methods that can be used to query the database.
- CategoryService - Class in edu.cnm.deepdive.interviewprep.service
-
This class implements the high level persistence and business logic for the
Category
entity. - CategoryService(CategoryRepository) - Constructor for class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Constructor that instantiates a new
Category
service object. - configure(HttpSecurity) - Method in class edu.cnm.deepdive.interviewprep.configuration.SecurityConfiguration
- convert(Jwt) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
- createCategory(Category) - Method in class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Creates a new
Category
object in the database. - createQuestion(Question, User) - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Creates a new
Question
object in the database for the current user.
D
- delete(User) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Deletes a
User
object that matches the parameter user from the database. - delete(UUID) - Method in class edu.cnm.deepdive.interviewprep.controller.CategoryController
-
This method defines the behavior of a DELETE request to the URL /interviewprep/categories/externalkey.
- delete(UUID) - Method in class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
This method defines the behavior of a DELETE request to the URL /interviewprep/questions/externalkey.
- delete(UUID) - Method in class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Deletes a
Category
object identified by external key. - delete(UUID, User) - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Deletes a
Question
object identified by external key for the current user.
E
- edu.cnm.deepdive.interviewprep - package edu.cnm.deepdive.interviewprep
- edu.cnm.deepdive.interviewprep.configuration - package edu.cnm.deepdive.interviewprep.configuration
- edu.cnm.deepdive.interviewprep.controller - package edu.cnm.deepdive.interviewprep.controller
- edu.cnm.deepdive.interviewprep.model.dao - package edu.cnm.deepdive.interviewprep.model.dao
- edu.cnm.deepdive.interviewprep.model.entity - package edu.cnm.deepdive.interviewprep.model.entity
- edu.cnm.deepdive.interviewprep.service - package edu.cnm.deepdive.interviewprep.service
- ExceptionResponseMapping - Class in edu.cnm.deepdive.interviewprep.controller
-
This is the class that REST communicates to JPA that an exception has occurred, returns a user friendly status code in the header response.
- ExceptionResponseMapping() - Constructor for class edu.cnm.deepdive.interviewprep.controller.ExceptionResponseMapping
F
- findAllBySource(String) - Method in interface edu.cnm.deepdive.interviewprep.model.dao.QuestionRepository
-
Returns a list of
Question
objects identified by the source. - findByExternalKey(UUID) - Method in interface edu.cnm.deepdive.interviewprep.model.dao.CategoryRepository
-
Returns a
Category
object that matches the external key. - findByExternalKey(UUID) - Method in interface edu.cnm.deepdive.interviewprep.model.dao.QuestionRepository
-
Returns a
Question
object that matches the external key. - findByExternalKey(UUID) - Method in interface edu.cnm.deepdive.interviewprep.model.dao.UserRepository
-
Returns a
User
object that matches the external key. - findByExternalKeyAndUser(UUID, User) - Method in interface edu.cnm.deepdive.interviewprep.model.dao.QuestionRepository
-
Returns a
Question
object that matches the external key and user id. - findByOauthKey(String) - Method in interface edu.cnm.deepdive.interviewprep.model.dao.UserRepository
-
Returns a
User
object that matches the OAuth key. - findRandom() - Method in interface edu.cnm.deepdive.interviewprep.model.dao.QuestionRepository
-
Returns a random
Question
object from the database.
G
- get() - Method in class edu.cnm.deepdive.interviewprep.controller.CategoryController
-
This method defines the behavior of a GET request to the URL /interviewprep/categories.
- get() - Method in class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
This method defines the behavior of a GET request to the URL /interviewprep/questions.
- get(UUID) - Method in class edu.cnm.deepdive.interviewprep.controller.CategoryController
-
This method defines the behavior of a GET request to the URL /interviewprep/categories/externalKey.
- get(UUID) - Method in class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
This method defines the behavior of a GET request to the URL /interviewprep/questions/externalKey.
- get(UUID) - Method in class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Gets the current
Category
object records from the database identified by id. - get(UUID) - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Gets the current Question object records from the database identified by external key.
- get(UUID) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Returns a
User
object that matches the id. - get(UUID, User) - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Returns a
Question
object identified by the external key for the current user. - getAll() - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Returns a list of
User
ordered by display name in ascending order. - getAllByOrderByDisplayNameAsc() - Method in interface edu.cnm.deepdive.interviewprep.model.dao.UserRepository
-
Returns a list of
User
objects ordered by display name in ascending order. - getAnswer() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns an answer in the form of a string.
- getByExternalKey(UUID) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Returns a
User
that matches the external key. - getCategories() - Method in class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Returns a list of all
Category
in the database. - getCreated() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Category
-
Returns an object creation Date for this instance.
- getCreated() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns an object creation Date for this instance.
- getCreated() - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Returns an object creation Date for this instance.
- getCurrentUser() - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Gets a current
User
object from the database. - getDisplayName() - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Returns a display name for the User.
- getExternalKey() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Category
-
Returns a unique external key identifier for this instance.
- getExternalKey() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns a unique external key identifier for this instance.
- getExternalKey() - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Returns a unique external key identifier for this instance.
- getId() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Category
-
Returns the primary key identifier for this instance.
- getId() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns the primary key identifier for this instance.
- getId() - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Returns the primary key identifier for this instance.
- getName() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Category
-
Returns a name for the Category.
- getOauthKey() - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Returns a unique OAuth key identifier for this instance.
- getOrCreate(String, String) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Queries the database for a
User
object defined by Oauth key. - getQuestion() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns a question in the form of a string.
- getQuestions() - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Returns a list of questions from the database.
- getQuestions() - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Returns a list of all
Question
in the database. - getRandom() - Method in class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
This method defines the behavior of a GET request to the URL /interviewprep/questions/random.
- getRandomQuestion() - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Returns a random
Question
object from the database. - getSource() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns a source in the form of a string.
- getUser() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns a User object for this instance.
- getUserAnswer() - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Returns a user answer in the form of a string.
I
- InterviewprepServerApplication - Class in edu.cnm.deepdive.interviewprep
-
This is the main class that initiates the Spring server application.
- InterviewprepServerApplication() - Constructor for class edu.cnm.deepdive.interviewprep.InterviewprepServerApplication
J
- jwtDecoder() - Method in class edu.cnm.deepdive.interviewprep.configuration.SecurityConfiguration
-
This method allows user to access a decoded and validated bearer token.
M
- main(String[]) - Static method in class edu.cnm.deepdive.interviewprep.InterviewprepServerApplication
-
The main entry point to the server application.
- me() - Method in class edu.cnm.deepdive.interviewprep.controller.UserController
-
This method defines the behavior of a GET request to the URL /interviewprep/users/me.
N
- notFound() - Method in class edu.cnm.deepdive.interviewprep.controller.ExceptionResponseMapping
-
This method handles a no such element exception from the REST endpoint, and returns a user-friendly status code in the header response.
P
- post(Category) - Method in class edu.cnm.deepdive.interviewprep.controller.CategoryController
-
This method defines the behavior of a POST request to the URL /interviewprep/categories.
- post(Question) - Method in class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
This method defines the behavior of a POST request to the URL /interviewprep/questions.
- put(UUID, Category) - Method in class edu.cnm.deepdive.interviewprep.controller.CategoryController
-
This method defines the behavior of a PUT request to the URL /interviewprep/categorie/categoryId.
- put(UUID, Question) - Method in class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
This method defines the behavior of a PUT request to the URL /interviewprep/questions/questionid.
Q
- Question - Class in edu.cnm.deepdive.interviewprep.model.entity
-
This is our Question entity class that represents Question objects in the Database.
- Question() - Constructor for class edu.cnm.deepdive.interviewprep.model.entity.Question
- QuestionController - Class in edu.cnm.deepdive.interviewprep.controller
-
This class creates REST endpoints that has access to the Question entity in the database through the Question and User services.
- QuestionController(UserService, QuestionService) - Constructor for class edu.cnm.deepdive.interviewprep.controller.QuestionController
-
Constructor that instantiates a new User service object.
- QuestionRepository - Interface in edu.cnm.deepdive.interviewprep.model.dao
-
This interface defines various methods that can be used to query the database.
- QuestionService - Class in edu.cnm.deepdive.interviewprep.service
-
This class implements the high level persistence and business logic for the Question entity.
- QuestionService(QuestionRepository) - Constructor for class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Constructor that instantiates a new
Question
service object.
S
- save(User) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Saves a User object to the database.
- saveCategory(String) - Method in class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Saves a
Category
object to the database identified by name. - saveQuestion(Question, User) - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Saves a
Question
object to the database for the current user. - SecurityConfiguration - Class in edu.cnm.deepdive.interviewprep.configuration
-
This class handles the security configuration of our Server Application.
- SecurityConfiguration(Converter<Jwt, ? extends AbstractAuthenticationToken>) - Constructor for class edu.cnm.deepdive.interviewprep.configuration.SecurityConfiguration
-
This Constructor instantiates a new security configuration object.
- setAnswer(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Sets an answer in the form of a string.
- setDisplayName(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Sets a display name for the User.
- setName(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.Category
-
Set a name for the Category.
- setOauthKey(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.User
-
Sets the OAuth key identifier for this object.
- setQuestion(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Sets a question in the form of a string.
- setSource(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Sets a source in the form of a string.
- setUser(User) - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Sets a User object for this instance.
- setUserAnswer(String) - Method in class edu.cnm.deepdive.interviewprep.model.entity.Question
-
Sets a user answer in the form of a string.
U
- update(User, User) - Method in class edu.cnm.deepdive.interviewprep.service.UserService
-
Updates the current
User
object records from the provided updated User record, and saves the result to the database. - updateCategory(UUID, Category) - Method in class edu.cnm.deepdive.interviewprep.service.CategoryService
-
Updates a
Category
object to the database for the current user. - updateQuestion(UUID, Question, User) - Method in class edu.cnm.deepdive.interviewprep.service.QuestionService
-
Updates a
Question
object to the database for the current user. - User - Class in edu.cnm.deepdive.interviewprep.model.entity
-
This is our User entity class that represents User objects in the database.
- User() - Constructor for class edu.cnm.deepdive.interviewprep.model.entity.User
- UserController - Class in edu.cnm.deepdive.interviewprep.controller
-
This class creates REST endpoints that has access to the User entity in the database through the user service.
- UserController(UserService) - Constructor for class edu.cnm.deepdive.interviewprep.controller.UserController
-
Constructor that instantiates a new User service object.
- UserRepository - Interface in edu.cnm.deepdive.interviewprep.model.dao
-
This interface defines various methods that can be used to query the database.
- UserService - Class in edu.cnm.deepdive.interviewprep.service
-
This class implements the high level persistence and business logic for the User entity.
- UserService(UserRepository) - Constructor for class edu.cnm.deepdive.interviewprep.service.UserService
-
Constructor that instantiates a new User repository object.
All Classes All Packages