Uses of Class
it.unimib.unimibmodules.exception.NotFoundException
Packages that use NotFoundException
Package
Description
-
Uses of NotFoundException in it.unimib.unimibmodules.controller
Methods in it.unimib.unimibmodules.controller that throw NotFoundExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>
Creates an Answer.org.springframework.http.ResponseEntity<String>
QuestionController.addQuestion
(QuestionDTO questionDTO) Creates a question, with the given text and idorg.springframework.http.ResponseEntity<String>
Creates a survey, with the given name and request's date-time, that is associated to the given user idAnswerController.convertToEntity
(AnswerDTO answerDTO) Converts an instance of AnswerDTO to an instance of AnswerCloseEndedAnswerController.convertToEntity
(CloseEndedAnswerDTO closeEndedAnswerDTO) Converts an instance of CloseEndedAnswer to an instance of CloseEndedAnswerDTOabstract M
DTOMapping.convertToEntity
(T dto) Converts an instance of T to an instance of MQuestionController.convertToEntity
(QuestionDTO questionDTO) Converts an instance of QuestionDTO to an instance of QuestionSurveyController.convertToEntity
(SurveyDTO surveyDTO) Conversion of an instance of SurveyDTO to an instance of Surveyorg.springframework.http.ResponseEntity<String>
AnswerController.deleteAnswer
(int id) Deletes the answer associated with the givenid
.org.springframework.http.ResponseEntity<String>
CloseEndedAnswerController.deleteAnswer
(int id) Deletes the close-ended answer associated with the given id.org.springframework.http.ResponseEntity<String>
QuestionController.deleteQuestion
(int id) Deletes the question associated with the given id.SurveyController.findAllSurveys()
Finds all surveys.SurveyController.findAllSurveysNoQuestion()
Finds all surveys without their questions list.SurveyController.findAllSurveysNoQuestionLazy
(int offset, int limit) Finds all surveys without their questions.org.springframework.http.ResponseEntity<AnswerDTO>
AnswerController.findAnswer
(int id) Finds the Answer associated with the givenid
.org.springframework.http.ResponseEntity<List<CategoryDTO>>
CategoryController.findCategories()
Gets all the categoriesorg.springframework.http.ResponseEntity<CategoryDTO>
CategoryController.findCategory
(int id) Gets the Category associated with the given id.org.springframework.http.ResponseEntity<CloseEndedAnswerDTO>
CloseEndedAnswerController.findCloseEndedAnswer
(int id) Gets the Answer associated with the given id.org.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.findQuestionsByText
(String text) Gets the question in the database where text is contained in the text of the questionorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.findQuestionsByTextLazy
(String text, int offset, int limit) Gets the question in the database where text is contained in the text of the question with Lazy Loadingorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.findQuestionsForSurvey
(int id) Gets the Question associated with the given id.org.springframework.http.ResponseEntity<SurveyDTO>
SurveyController.findSurvey
(int id) Finds the survey associated with the given id.AnswerController.findSurveyAnswersForUser
(int surveyId, int userId) Finds all the Answer the User associated withuserId
has created for the Survey associated withsurveyId
.org.springframework.http.ResponseEntity<SurveyDTO>
SurveyController.findSurveyByCompilationCode
(String code) Finds the survey associated with the given id.SurveyController.findSurveyByText
(String text) Finds the surveys where text is contained in their names or in their identifiers.SurveyController.findSurveyByTextNoQuestions
(String text) Finds the surveys where text is contained in their names or in their identifiers without their questions listSurveyController.findSurveyByTextNoQuestionsLazy
(String text, int offset, int limit) Finds the surveys where text is contained in their names or in their identifiers without their questions list using Lazy Loading parameters.org.springframework.http.ResponseEntity<SurveyDTO>
SurveyController.findSurveyNoQuestion
(int id) Finds the survey associated with the given id without its questions list.org.springframework.http.ResponseEntity<byte[]>
AnswerController.generatePdf
(int surveyId, int userId) Create a pdf of the Answer in the survey by the usersurveyId
.AnswerRepository.get
(int id) Finds the answer identified by id in the databaseCategoryRepository.get
(int id) Finds the category identified by id in the databaseCategoryRepositoryReadOnly.get
(int id) Finds the category identified by id in the databaseCloseEndedAnswerRepository.get
(int id) Finds the CloseEndedAnswer identified byid
in the database.CloseEndedAnswerRepositoryReadOnly.get
(int id) Finds the CloseEndedAnswer identified byid
in the database.QuestionRepository.get
(int id) Finds the question identified by id in the databaseQuestionRepositoryReadOnly.get
(int id) Finds the question identified by id in the databaseSurveyRepository.get
(int id) Finds the survey identified by id in the databaseSurveyRepositoryReadOnly.get
(int id) Finds the survey identified by id in the databaseUserRepository.get
(int id) Finds the user identified by id in the databaseUserRepositoryReadOnly.get
(int id) Finds the user identified by id in the databaseCategoryRepository.getAll()
Finds all the categories in the databaseQuestionRepository.getAll()
Finds all the questions in the databaseSurveyRepository.getAll()
Returns all surveys in the database.SurveyRepository.getAllLazy
(int offset, int limit) Returns all surveys in the database with lazy Loading.boolean
Finds the user identified by compilationCode in the databaseUserRepository.getByCodeEntity
(String code) Finds the user identified by compilationCode in the databaseSurveyRepository.getByCompilationCode
(String code) Finds the Survey in the database where text is contained in the name of the surveySurveyRepository.getByTextLazy
(String text, int offset, int limit) Finds the Survey in the database where text is contained in the name of the survey with Lazy LoadingUserRepository.getByUsername
(String username) Finds the user identified by username in the databaseorg.springframework.http.ResponseEntity<String>
UserController.getNewCode()
org.springframework.http.ResponseEntity<QuestionDTO>
QuestionController.getQuestion
(int id) Gets the Question associated with the given id.org.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.getQuestions()
Gets all the questionsorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.getQuestionsByCategory
(int id) Gets all the questions associated with the given id of categoryorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.getQuestionsByCategoryLazy
(int id, int offset, int limit) Gets all the questions associated with the given id of category with Lazy Loadingorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.getQuestionsByUser
(int id) Gets all the questions of the userorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.getQuestionsByUserLazy
(int id, int offset, int limit) Gets all the questions of the user with Lazy Loadingorg.springframework.http.ResponseEntity<List<QuestionDTO>>
QuestionController.getQuestionsLazy
(int offset, int limit) Gets all the questions with Lazy LoadingUserController.getSurveysCreated
(String username) Gets the surveys created by the user identified by the usernameorg.springframework.http.ResponseEntity<UserDTO>
UserController.getUser
(int id) Gets the User associated with the given id.org.springframework.http.ResponseEntity<String>
Logs the User into the website if the combination of username and password match.org.springframework.http.ResponseEntity<String>
AnswerController.modifyAnswer
(AnswerDTO modifiedAnswerDTO) Modifies an Answer using the values ofmodifiedAnswerDTO
.org.springframework.http.ResponseEntity<String>
CloseEndedAnswerController.modifyCloseEndedAnswer
(CloseEndedAnswerDTO closeEndedAnswerDTO) Modifies the answer of a close-ended question associated with the given id, setting text as the answer.void
SurveyRepository.modifyName
(String name, int id) Updates the survey nameorg.springframework.http.ResponseEntity<String>
QuestionController.modifyQuestion
(QuestionDTO questionDTO) Modifies the question's text associated with the given id.org.springframework.http.ResponseEntity<String>
SurveyController.modifySurvey
(SurveyDTO surveyDTO) Modifies the survey's name associated with the given surveyDTO.org.springframework.http.ResponseEntity<String>
CloseEndedAnswerController.postCloseEndedAnswer
(CloseEndedAnswerDTO closeEndedAnswerDTO) Creates an answer to a close-ended question.void
CloseEndedAnswerRepository.remove
(int id) Deletes from the database the CloseEndedAnswer identified byid
.void
QuestionRepository.remove
(int id) Deletes from the database the question identified by id.org.springframework.http.ResponseEntity<String>
AnswerController.saveNewAnswers
(int surveyId, int userId) Inserts the registered answers made by the user identified byuserId
on the survey identified bysurveyId
. -
Uses of NotFoundException in it.unimib.unimibmodules.exception
Methods in it.unimib.unimibmodules.exception with parameters of type NotFoundExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
ExceptionController.handleNotFoundException
(NotFoundException ex) Returns a ResponseEntity to the rest client with the error message and HTTP code 404 -
Uses of NotFoundException in it.unimib.unimibmodules.repository
Methods in it.unimib.unimibmodules.repository that throw NotFoundExceptionModifier and TypeMethodDescriptionAnswerRepositoryImpl.get
(int id) Finds the answer identified by id in the databaseCategoryRepositoryImpl.get
(int id) Finds the category identified by id in the databaseCloseEndedAnswerRepositoryImpl.get
(int id) Finds the CloseEndedAnswer identified byid
in the database.QuestionRepositoryImpl.get
(int id) Finds the question identified by id in the databaseSurveyRepositoryImpl.get
(int id) Finds the survey identified by id in the databaseUserRepositoryImpl.get
(int id) Finds the user identified by id in the databaseQuestionRepositoryImpl.getAll()
Returns all questions in the database.SurveyRepositoryImpl.getAll()
Returns all surveys from the database.SurveyRepositoryImpl.getAllLazy
(int offset, int limit) Returns all surveys from the database with Lazy Loading parameters.boolean
Tells if the user identified by compilationCode exists in the database.SurveyRepositoryImpl.getByCompilationCode
(String code) Finds all the surveys in the database where text is contained in their names or in their identifier.SurveyRepositoryImpl.getByTextLazy
(String text, int offset, int limit) Finds all the surveys in the database where text is contained in their names or in their identifier with Lazy Loading parameters.UserRepositoryImpl.getByUsername
(String username) Finds the user identified by username in the databasevoid
SurveyRepositoryImpl.modifyName
(String name, int id) Updates the name of the survey in the database.void
AnswerRepositoryImpl.remove
(int id) Deletes from the database the answer identified by id.void
CloseEndedAnswerRepositoryImpl.remove
(int id) Deletes from the database the CloseEndedAnswer identified byid
.void
QuestionRepositoryImpl.remove
(int id) Deletes from the database the question identified by id.void
UserRepositoryImpl.remove
(int id) Deletes from the database the user identified by id.