Uses of Class
ntnu.idatt2016.v233.SmartMat.entity.user.User
Packages that use User
Package
Description
-
Uses of User in ntnu.idatt2016.v233.SmartMat.controller.user
Methods in ntnu.idatt2016.v233.SmartMat.controller.user that return types with arguments of type UserModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<User>
UserController.getUser
(String username, org.springframework.security.core.Authentication authentication) Get a user from the database.org.springframework.http.ResponseEntity<User>
UserController.register
(RegisterUserRequest user) create a new user in the database uses the user serviceorg.springframework.http.ResponseEntity<User>
UserController.updateUser
(String username, UpdateUserRequest updateUser, org.springframework.security.core.Authentication authentication) Update a user in the database. -
Uses of User in ntnu.idatt2016.v233.SmartMat.entity.product
Methods in ntnu.idatt2016.v233.SmartMat.entity.product with parameters of type User -
Uses of User in ntnu.idatt2016.v233.SmartMat.repository.group
Methods in ntnu.idatt2016.v233.SmartMat.repository.group with parameters of type UserModifier and TypeMethodDescriptionUserGroupAssoRepository.findAllByGroupAndUser
(Group group, User user) Finds all UserGroupAsso objects associated with the specified group and user.UserGroupAssoRepository.findFirstByUserAndPrimaryGroup
(User user, boolean primaryGroup) Finds the first UserGroupAsso object associated with the specified user and primary group status. -
Uses of User in ntnu.idatt2016.v233.SmartMat.repository.user
Methods in ntnu.idatt2016.v233.SmartMat.repository.user that return types with arguments of type UserModifier and TypeMethodDescriptionUserRepository.findByEmail
(String email) gets user from email out of databaseUserRepository.findByUsername
(String username) gets user from username out of database -
Uses of User in ntnu.idatt2016.v233.SmartMat.service.product
Methods in ntnu.idatt2016.v233.SmartMat.service.product with parameters of type UserModifier and TypeMethodDescriptionvoid
RecipeService.addUserToRecipe
(Recipe recipe, User user) Adds a user to a recipe used for adding favorite recipes -
Uses of User in ntnu.idatt2016.v233.SmartMat.service.user
Methods in ntnu.idatt2016.v233.SmartMat.service.user that return UserModifier and TypeMethodDescriptionsaves user to databaseUserService.updateUser
(User user) update user if it already exists cant update username from thisMethods in ntnu.idatt2016.v233.SmartMat.service.user that return types with arguments of type UserModifier and TypeMethodDescriptionUserService.getUserFromEmail
(String email) gets user from email out of databaseUserService.getUserFromUsername
(String username) gets user from username out of databaseUserService.getUsers()
Gets all users from the databasesaves list of users to databaseMethods in ntnu.idatt2016.v233.SmartMat.service.user with parameters of type UserModifier and TypeMethodDescriptionvoid
deletes user from databasesaves user to databaseUserService.updateUser
(User user) update user if it already exists cant update username from thisMethod parameters in ntnu.idatt2016.v233.SmartMat.service.user with type arguments of type User