Uses of Record Class
org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
Packages that use GoalResponseDTO
Package
Description
-
Uses of GoalResponseDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller that return types with arguments of type GoalResponseDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<GoalResponseDTO> GoalController.completeUserGoal
(Long id, org.springframework.security.core.userdetails.UserDetails userDetails) Completes a user's saving goalorg.springframework.http.ResponseEntity
<GoalResponseDTO> GoalController.createUserGoal
(GoalCreateDTO goalDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Creates a saving goalorg.springframework.http.ResponseEntity
<List<GoalResponseDTO>> GoalController.getActiveGoals
(org.springframework.security.core.userdetails.UserDetails userDetails) Gets a list of active user goals.org.springframework.http.ResponseEntity
<org.springframework.data.domain.Page<GoalResponseDTO>> GoalController.getCompletedGoals
(org.springframework.data.domain.Pageable pageable, org.springframework.security.core.userdetails.UserDetails userDetails) Gets a page of a user's completed saving goalsorg.springframework.http.ResponseEntity
<GoalResponseDTO> GoalController.getUserGoal
(Long id, org.springframework.security.core.userdetails.UserDetails userDetails) Get specific user's saving goalorg.springframework.http.ResponseEntity
<org.springframework.data.domain.Page<GoalResponseDTO>> GoalController.getUserGoals
(org.springframework.data.domain.Pageable pageable, org.springframework.security.core.userdetails.UserDetails userDetails) Gets a page of a user's saving goalsorg.springframework.http.ResponseEntity
<List<GoalResponseDTO>> GoalController.updatePriorities
(List<Long> goalIds, org.springframework.security.core.userdetails.UserDetails userDetails) Updates goal priority orderorg.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 GoalResponseDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper that return GoalResponseDTOModifier and TypeMethodDescriptionMaps Goal entity to DTO -
Uses of GoalResponseDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service that return GoalResponseDTOModifier and TypeMethodDescriptionGoalService.completeGoal
(Long goalId, User user) Completes a goal of a user, specified by its IDGoalService.findUserGoal
(Long id, User user) Finds a user's saving goal specified by its IDGoalService.save
(GoalCreateDTO goalDTO, User user) Saves a goal entity.GoalService.update
(Long id, GoalUpdateDTO goalDTO, User user) Updates a goal of a user, specified by its IDMethods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service that return types with arguments of type GoalResponseDTOModifier and TypeMethodDescriptionGoalService.getActiveUserGoals
(User user) Gets a list of active user goalsorg.springframework.data.domain.Page
<GoalResponseDTO> GoalService.getCompletedUserGoals
(User user, org.springframework.data.domain.Pageable pageable) Gets a page of completed user goalsorg.springframework.data.domain.Page
<GoalResponseDTO> GoalService.getUserGoals
(User user, org.springframework.data.domain.Pageable pageable) Gets a page of a user's saving goalsGoalService.updatePriorities
(List<Long> goalIds, User user) Updates the priority ordering of the list of active saving goals of a user