Uses of Class
org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation.ObjectNotValidException
Packages that use ObjectNotValidException
Package
Description
-
Uses of ObjectNotValidException in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller that throw ObjectNotValidExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<String> ChangePasswordController.changePasswordRequest
(ChangePasswordRequestRequest changePasswordRequestRequest) Parses a request for forgot password and sends a mail with a link for resetting password.org.springframework.http.ResponseEntity
<ChallengeDTO> ChallengeController.createChallenge
(ChallengeCreateDTO challengeCreateDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Creates a saving challengeorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.createChallengeConfig
(ChallengeConfigDTO challengeConfigDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Creates a challenge configorg.springframework.http.ResponseEntity
<AccountDTO> AccountController.createUserAccount
(AccountDTO accountDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Registers a bank account for a userorg.springframework.http.ResponseEntity
<GoalResponseDTO> GoalController.createUserGoal
(GoalCreateDTO goalDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Creates a saving goalorg.springframework.http.ResponseEntity
<LoginRegisterResponse> AuthenticationController.login
(AuthenticationRequest authRequest) Log in an existing user with username and passwordorg.springframework.http.ResponseEntity
<LoginRegisterResponse> AuthenticationController.register
(RegisterRequest registerRequest) Registers a new user with a given username, password, email, first name and last nameorg.springframework.http.ResponseEntity
<String> ChangePasswordController.resetPassword
(ResetPasswordRequest resetPasswordRequest) Resets a user's passwordorg.springframework.http.ResponseEntity
<ChallengeDTO> ChallengeController.updateChallenge
(Long id, ChallengeUpdateDTO challengeUpdateDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a challengeorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.updateChallengeConfig
(ChallengeConfigDTO challengeConfigDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a user's challenge configorg.springframework.http.ResponseEntity
<AccountResponseDTO> AccountController.updateUserAccount
(AccountUpdateDTO accountUpdateDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a user's accountorg.springframework.http.ResponseEntity
<GoalResponseDTO> GoalController.updateUserGoal
(Long id, GoalUpdateDTO goalDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a user's saving goal -
Uses of ObjectNotValidException in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception with parameters of type ObjectNotValidExceptionModifier and TypeMethodDescriptionGlobalExceptionHandler.handleValidationException
(ObjectNotValidException ex) Handle exception for invalid objects -
Uses of ObjectNotValidException in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service that throw ObjectNotValidExceptionModifier and TypeMethodDescriptionUserConfigService.createChallengeConfig
(String username, ChallengeConfigDTO challengeConfigDTO) Creates a challenge config for a userAuthenticationService.login
(AuthenticationRequest request) Log in user with credentials (username and password)AuthenticationService.register
(RegisterRequest request) Registers a new, valid user.ChallengeService.save
(ChallengeCreateDTO challengeCreateDTO, User user) Creates and persists a new challenge based on provided DTO and user details.GoalService.save
(GoalCreateDTO goalDTO, User user) Saves a goal entity.AccountService.saveAccount
(AccountDTO accountDTO, User user) Saves a new account based on the provided DTO and associates it with the given user.GoalService.update
(Long id, GoalUpdateDTO goalDTO, User user) Updates a goal of a user, specified by its IDAccountService.updateAccount
(AccountUpdateDTO accountUpdateDTO, User user) Updates an existing account of the specified user based on the provided update DTO.ChallengeService.updateChallenge
(Long id, ChallengeUpdateDTO challengeUpdateDTO, User user) Updates an existing challenge with new data from a provided DTO if the challenge has not been completed.UserConfigService.updateChallengeConfig
(String username, ChallengeConfigDTO challengeConfigDTO) Method will reset all challenge type configs.