Uses of Class
com.omarigrant.budget.model.User
Packages that use User
Package
Description
-
Uses of User in com.omarigrant.budget.dao
Methods in com.omarigrant.budget.dao that return types with arguments of type UserModifier and TypeMethodDescriptionUserDao.all()UserDao.findUserBySub(String sub) Find user by jwt subUserDao.get(long id) Methods in com.omarigrant.budget.dao with parameters of type User -
Uses of User in com.omarigrant.budget.mappers
Methods in com.omarigrant.budget.mappers with parameters of type UserModifier and TypeMethodDescriptionBudgetMapper.toBudget(BudgetInputDTO budgetInputDTO, User user) -
Uses of User in com.omarigrant.budget.mappers.contracts
Methods in com.omarigrant.budget.mappers.contracts with parameters of type UserModifier and TypeMethodDescriptionBudgetMapperContract.toBudget(BudgetInputDTO budgetInputDTO, User user) Convert BudgetInputDTO to Budget -
Uses of User in com.omarigrant.budget.services
Methods in com.omarigrant.budget.services that return UserModifier and TypeMethodDescriptionUserService.findUserFromJwtToken(org.springframework.security.oauth2.jwt.Jwt jwt) Return user from database using JWT token.Methods in com.omarigrant.budget.services with parameters of type UserModifier and TypeMethodDescriptionbooleanBudgetService.doesBudgetBelongToUser(User user, Long budgetId) UserService.getAllBudgets(User user) Get all budgets associated with the user.BudgetService.handleControllerInputAndSave(BudgetInputDTO budgetInputDTO, LocalDate baseDate, User user) -
Uses of User in com.omarigrant.budget.services.contracts
Methods in com.omarigrant.budget.services.contracts with parameters of type UserModifier and TypeMethodDescriptionbooleanBudgetServiceInterface.doesBudgetBelongToUser(User user, Long budgetId) Checks that the budget belongs to the user to prevent users affecting items that are not theirs.BudgetServiceInterface.handleControllerInputAndSave(BudgetInputDTO budgetInputDTO, LocalDate baseDate, User user) This functions primary use is for functions, so an input model is given, processed and saved before returning an output model to the user.