Uses of Class
it.unimib.unimibmodules.exception.NotFoundException

Packages that use NotFoundException
  • Uses of NotFoundException in it.unimib.unimibmodules.controller

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<String>
    AnswerController.addAnswer(AnswerDTO answerDTO)
    Creates an Answer.
    org.springframework.http.ResponseEntity<String>
    QuestionController.addQuestion(QuestionDTO questionDTO)
    Creates a question, with the given text and id
    org.springframework.http.ResponseEntity<String>
    SurveyController.addSurvey(SurveyDTO surveyDTO)
    Creates a survey, with the given name and request's date-time, that is associated to the given user id
    AnswerController.convertToEntity(AnswerDTO answerDTO)
    Converts an instance of AnswerDTO to an instance of Answer
    CloseEndedAnswerController.convertToEntity(CloseEndedAnswerDTO closeEndedAnswerDTO)
    Converts an instance of CloseEndedAnswer to an instance of CloseEndedAnswerDTO
    abstract M
    DTOMapping.convertToEntity(T dto)
    Converts an instance of T to an instance of M
    QuestionController.convertToEntity(QuestionDTO questionDTO)
    Converts an instance of QuestionDTO to an instance of Question
    SurveyController.convertToEntity(SurveyDTO surveyDTO)
    Conversion of an instance of SurveyDTO to an instance of Survey
    org.springframework.http.ResponseEntity<String>
    AnswerController.deleteAnswer(int id)
    Deletes the answer associated with the given id.
    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.
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    SurveyController.findAllSurveys()
    Finds all surveys.
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    SurveyController.findAllSurveysNoQuestion()
    Finds all surveys without their questions list.
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    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 given id.
    org.springframework.http.ResponseEntity<List<CategoryDTO>>
    CategoryController.findCategories()
    Gets all the categories
    org.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 question
    org.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 Loading
    org.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.
    org.springframework.http.ResponseEntity<List<AnswerDTO>>
    AnswerController.findSurveyAnswersForUser(int surveyId, int userId)
    Finds all the Answer the User associated with userId has created for the Survey associated with surveyId.
    org.springframework.http.ResponseEntity<SurveyDTO>
    SurveyController.findSurveyByCompilationCode(String code)
    Finds the survey associated with the given id.
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    SurveyController.findSurveyByText(String text)
    Finds the surveys where text is contained in their names or in their identifiers.
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    SurveyController.findSurveyByTextNoQuestions(String text)
    Finds the surveys where text is contained in their names or in their identifiers without their questions list
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    SurveyController.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 user surveyId.
    AnswerRepository.get(int id)
    Finds the answer identified by id in the database
    CategoryRepository.get(int id)
    Finds the category identified by id in the database
    CategoryRepositoryReadOnly.get(int id)
    Finds the category identified by id in the database
    CloseEndedAnswerRepository.get(int id)
    Finds the CloseEndedAnswer identified by id in the database.
    CloseEndedAnswerRepositoryReadOnly.get(int id)
    Finds the CloseEndedAnswer identified by id in the database.
    QuestionRepository.get(int id)
    Finds the question identified by id in the database
    QuestionRepositoryReadOnly.get(int id)
    Finds the question identified by id in the database
    SurveyRepository.get(int id)
    Finds the survey identified by id in the database
    SurveyRepositoryReadOnly.get(int id)
    Finds the survey identified by id in the database
    UserRepository.get(int id)
    Finds the user identified by id in the database
    UserRepositoryReadOnly.get(int id)
    Finds the user identified by id in the database
    CategoryRepository.getAll()
    Finds all the categories in the database
    QuestionRepository.getAll()
    Finds all the questions in the database
    SurveyRepository.getAll()
    Returns all surveys in the database.
    SurveyRepository.getAllLazy(int offset, int limit)
    Returns all surveys in the database with lazy Loading.
    boolean
    UserRepository.getByCode(String code)
    Finds the user identified by compilationCode in the database
    UserRepository.getByCodeEntity(String code)
    Finds the user identified by compilationCode in the database
    SurveyRepository.getByCompilationCode(String code)
     
    SurveyRepository.getByText(String text)
    Finds the Survey in the database where text is contained in the name of the survey
    SurveyRepository.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 Loading
    UserRepository.getByUsername(String username)
    Finds the user identified by username in the database
    org.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 questions
    org.springframework.http.ResponseEntity<List<QuestionDTO>>
    QuestionController.getQuestionsByCategory(int id)
    Gets all the questions associated with the given id of category
    org.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 Loading
    org.springframework.http.ResponseEntity<List<QuestionDTO>>
    QuestionController.getQuestionsByUser(int id)
    Gets all the questions of the user
    org.springframework.http.ResponseEntity<List<QuestionDTO>>
    QuestionController.getQuestionsByUserLazy(int id, int offset, int limit)
    Gets all the questions of the user with Lazy Loading
    org.springframework.http.ResponseEntity<List<QuestionDTO>>
    QuestionController.getQuestionsLazy(int offset, int limit)
    Gets all the questions with Lazy Loading
    org.springframework.http.ResponseEntity<List<SurveyDTO>>
    UserController.getSurveysCreated(String username)
    Gets the surveys created by the user identified by the username
    org.springframework.http.ResponseEntity<UserDTO>
    UserController.getUser(int id)
    Gets the User associated with the given id.
    org.springframework.http.ResponseEntity<String>
    UserController.logInUser(UserDTO userDTO)
    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 of modifiedAnswerDTO.
    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 name
    org.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 by id.
    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 by userId on the survey identified by surveyId.
  • Uses of NotFoundException in it.unimib.unimibmodules.exception

    Methods in it.unimib.unimibmodules.exception with parameters of type NotFoundException
    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Object>
    Returns a ResponseEntity to the rest client with the error message and HTTP code 404
  • Uses of NotFoundException in it.unimib.unimibmodules.repository

    Modifier and Type
    Method
    Description
    AnswerRepositoryImpl.get(int id)
    Finds the answer identified by id in the database
    CategoryRepositoryImpl.get(int id)
    Finds the category identified by id in the database
    CloseEndedAnswerRepositoryImpl.get(int id)
    Finds the CloseEndedAnswer identified by id in the database.
    QuestionRepositoryImpl.get(int id)
    Finds the question identified by id in the database
    SurveyRepositoryImpl.get(int id)
    Finds the survey identified by id in the database
    UserRepositoryImpl.get(int id)
    Finds the user identified by id in the database
    QuestionRepositoryImpl.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
    UserRepositoryImpl.getByCode(String code)
    Tells if the user identified by compilationCode exists in the database.
    SurveyRepositoryImpl.getByCompilationCode(String code)
     
    SurveyRepositoryImpl.getByText(String text)
    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 database
    void
    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 by id.
    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.