Uses of Class
it.unimib.unimibmodules.exception.EmptyFieldException
Packages that use EmptyFieldException
Package
Description
-
Uses of EmptyFieldException in it.unimib.unimibmodules.controller
Methods in it.unimib.unimibmodules.controller that throw EmptyFieldExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>Creates an Answer.org.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 MDTOMapping.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 SurveyUserController.convertToEntity(UserDTO userDTO) Converts an instance of UserDTO to an instance of Userorg.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.voidSurveyRepository.modifyName(String name, int id) Updates the survey nameorg.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.org.springframework.http.ResponseEntity<String>UserController.signUpUser(UserDTO userDTO) Create a new User. -
Uses of EmptyFieldException in it.unimib.unimibmodules.exception
Methods in it.unimib.unimibmodules.exception with parameters of type EmptyFieldExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>ExceptionController.handleEmptyFieldException(EmptyFieldException e) Returns a ResponseEntity to the rest client with the error message and HTTP code 400. -
Uses of EmptyFieldException in it.unimib.unimibmodules.model
Methods in it.unimib.unimibmodules.model that throw EmptyFieldExceptionModifier and TypeMethodDescriptionvoidAnswer.setCloseEndedAnswers(Set<CloseEndedAnswer> closeEndedAnswers) voidModifies the name of the survey, setting name as the new value.voidModifies the text of the answer, settingtextas the new value.voidModifies the text of the close-ended answer, settingtextas the new value.voidUser.setUsername(String username) Modifies the username of a user, setting username as the new value -
Uses of EmptyFieldException in it.unimib.unimibmodules.repository
Methods in it.unimib.unimibmodules.repository that throw EmptyFieldExceptionModifier and TypeMethodDescriptionvoidSurveyRepositoryImpl.modifyName(String name, int id) Updates the name of the survey in the database.