Uses of Class
edu.ucsb.cs156.dining.entities.User
Package
Description
-
Uses of User in edu.ucsb.cs156.dining.controllers
Modifier and TypeMethodDescriptionUsersController.updateAliasModeration
(long id, Boolean approved) This method allows an admin to update the moderation status of a user's alias.Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<User> UsersController.updateProposedAlias
(String proposedAlias) This method allows the user to update their alias. -
Uses of User in edu.ucsb.cs156.dining.repositories
Modifier and TypeMethodDescriptionUserRepository.findByAlias
(String alias) This method returns a User entity with an alias.UserRepository.findByEmail
(String email) This method returns a User entity with a given email.UserRepository.findByProposedAliasNotNull()
This method returns a list of users with proposed alias that is not null. -
Uses of User in edu.ucsb.cs156.dining.services
Modifier and TypeMethodDescriptionCurrentUserServiceImpl.getOAuth2AuthenticatedUser
(org.springframework.security.core.context.SecurityContext securityContext, org.springframework.security.core.Authentication authentication) This method obtains the current user that is logged in with OAuth2, if any.abstract User
CurrentUserService.getUser()
This method returns the current user as a User object.CurrentUserServiceImpl.getUser()
This method returns the current user as a User object.