Uses of Class
it.unimib.unimibmodules.exception.FormatException
Packages that use FormatException
Package
Description
-
Uses of FormatException in it.unimib.unimibmodules.controller
Methods in it.unimib.unimibmodules.controller that throw FormatExceptionModifier and TypeMethodDescriptionvoid
Inserts an instance of Survey in the databaseorg.springframework.http.ResponseEntity<String>
Creates a survey, with the given name and request's date-time, that is associated to the given user idabstract M
DTOMapping.convertToEntity
(T dto) Converts an instance of T to an instance of MSurveyController.convertToEntity
(SurveyDTO surveyDTO) Conversion of an instance of SurveyDTO to an instance of Surveyorg.springframework.http.ResponseEntity<String>
SurveyController.deleteSurvey
(int id) Deletes the survey associated with the given id.void
SurveyRepository.modifyName
(String name, int id) Updates the survey namevoid
SurveyRepository.modifyQuestions
(Set<SurveyQuestions> surveyQuestions, int surveyId) Updates all the questions of survey in the database.org.springframework.http.ResponseEntity<String>
SurveyController.modifySurvey
(SurveyDTO surveyDTO) Modifies the survey's name associated with the given surveyDTO.void
SurveyRepository.remove
(int id) Deletes from the database the survey identified by id. -
Uses of FormatException in it.unimib.unimibmodules.dto
Methods in it.unimib.unimibmodules.dto that throw FormatExceptionModifier and TypeMethodDescriptionSurveyDTO.getCreationDateConverted
(String timezone, SimpleDateFormat dateFormat) Returns the creationDate of the surveyDTO in Date type using the given time zone. -
Uses of FormatException in it.unimib.unimibmodules.exception
Methods in it.unimib.unimibmodules.exception with parameters of type FormatExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
ExceptionController.handleFormatException
(FormatException ex) Returns a ResponseEntity to the rest client with the error message and HTTP code 400 -
Uses of FormatException in it.unimib.unimibmodules.repository
Methods in it.unimib.unimibmodules.repository that throw FormatExceptionModifier and TypeMethodDescriptionvoid
Inserts a new instance of Survey in the databasevoid
Inserts a new Set of surveys in the databasevoid
SurveyRepositoryImpl.modifyName
(String name, int id) Updates the name of the survey in the database.void
SurveyRepositoryImpl.modifyQuestions
(Set<SurveyQuestions> surveyQuestions, int surveyId) Updates the questions list of the survey.void
SurveyRepositoryImpl.remove
(int id) Deletes from the database the survey identified by id.