Uses of Class
edu.cnm.deepdive.picmegallery.model.entity.User
-
Packages that use User Package Description edu.cnm.deepdive.picmegallery.controller edu.cnm.deepdive.picmegallery.model.dao edu.cnm.deepdive.picmegallery.model.entity edu.cnm.deepdive.picmegallery.service -
-
Uses of User in edu.cnm.deepdive.picmegallery.controller
Methods in edu.cnm.deepdive.picmegallery.controller that return User Modifier and Type Method Description User
UserController. me(org.springframework.security.core.Authentication auth)
This is a get method that returns the current authenticated user.Methods in edu.cnm.deepdive.picmegallery.controller with parameters of type User Modifier and Type Method Description List<Photo>
PhotoController. getAllPhotosByUser(User user)
Gets the photos associated with a User.List<Event>
EventController. getAllUserEvents(User user, org.springframework.security.core.Authentication auth)
This method gets all Events in the PicMeDatabase for a specified User. -
Uses of User in edu.cnm.deepdive.picmegallery.model.dao
Methods in edu.cnm.deepdive.picmegallery.model.dao that return types with arguments of type User Modifier and Type Method Description Optional<User>
UserRepository. findFirstByOauthKey(String oauthKey)
Optional<User>
UserRepository. findUserByDisplayName(String displayName)
Optional<User>
UserRepository. findUserByPhotosContaining(Photo photo)
Optional<User>
UserRepository. findUsersByEvents(Event event)
Methods in edu.cnm.deepdive.picmegallery.model.dao with parameters of type User Modifier and Type Method Description Optional<Event>
EventRepository. findByIdAndUser(long id, User user)
This query finds an Event by the user that posted it and the event id.List<Event>
EventRepository. findEventsByUser(User user)
This Jpa hibernate query allows users to find all events they're a part ofList<Photo>
PhotoRepository. findPhotosByUser(User user)
Finds the photos that are associated with a user. -
Uses of User in edu.cnm.deepdive.picmegallery.model.entity
Methods in edu.cnm.deepdive.picmegallery.model.entity that return User Modifier and Type Method Description User
Event. getUser()
Gets the User who created the event.User
Photo. getUser()
Gets the user that that is associated with a Photo.Methods in edu.cnm.deepdive.picmegallery.model.entity that return types with arguments of type User Modifier and Type Method Description List<User>
Event. getUsers()
Gets all the user associated with an event.Methods in edu.cnm.deepdive.picmegallery.model.entity with parameters of type User Modifier and Type Method Description void
Event. setUser(User user)
Sets the sets the User who created the event.void
Photo. setUser(User user)
Sets the user that is associated with a Photo. -
Uses of User in edu.cnm.deepdive.picmegallery.service
Methods in edu.cnm.deepdive.picmegallery.service that return User Modifier and Type Method Description User
UserService. getOrCreate(String oauthKey, String userName)
Searches for a user with an Oauth Key and then makes a new user with an OauthKey if it cannot find them.Methods in edu.cnm.deepdive.picmegallery.service with parameters of type User Modifier and Type Method Description Optional<Event>
EventService. get(long id, User user)
This method returns an event by passing in the User who created it and the associated event id.List<Photo>
PhotoService. getAllPhotosByUser(User user)
Gets all the photos associated with a user.List<Event>
EventService. getAllUserEvents(User user)
This gets all the Events created by a user.Event
EventService. save(Event event, User user, String passkey, String name)
This is a method to save an Event object
-