Uses of Class
edu.cnm.deepdive.picmegallery.model.entity.Event
-
Packages that use Event 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 Event in edu.cnm.deepdive.picmegallery.controller
Methods in edu.cnm.deepdive.picmegallery.controller that return Event Modifier and Type Method Description Event
EventController. get(long id, String passkey, org.springframework.security.core.Authentication auth)
This get method returns access to an Event in the PicMe Database, for those who did not originate the Event.Event
EventController. getEvent(long id, org.springframework.security.core.Authentication auth)
This method gets the event specified for the User who created this event.Event
EventController. post(Event event, org.springframework.security.core.Authentication auth, String passkey, String name)
This is a post method that creates a new Event in the PicMe Database.Methods in edu.cnm.deepdive.picmegallery.controller that return types with arguments of type Event Modifier and Type Method Description List<Event>
EventController. getAllUserEvents(User user, org.springframework.security.core.Authentication auth)
This method gets all Events in the PicMeDatabase for a specified User.Methods in edu.cnm.deepdive.picmegallery.controller with parameters of type Event Modifier and Type Method Description Event
EventController. post(Event event, org.springframework.security.core.Authentication auth, String passkey, String name)
This is a post method that creates a new Event in the PicMe Database.Photo
PhotoController. post(Photo photo, Event event)
Creates a new Photo in the PicMe database with the Event associated. -
Uses of Event in edu.cnm.deepdive.picmegallery.model.dao
Methods in edu.cnm.deepdive.picmegallery.model.dao that return types with arguments of type Event Modifier and Type Method Description Optional<Event>
EventRepository. findByAddress(String address)
This Jpa hibernate query allows users to find an event by the address.Optional<Event>
EventRepository. findByIdAndPasskey(long id, String passkey)
This Jpa hibernate query allows users to find an event by the id and passkey.Optional<Event>
EventRepository. findByIdAndUser(long id, User user)
This query finds an Event by the user that posted it and the event id.Optional<Event>
EventRepository. findByLatitudeAndLongitude(Double latitude, Double longitude)
This Jpa hibernate query allows users to find an event by the latitude and longitude.Optional<Event>
EventRepository. findByName(String name)
This JPA hibernate query allows users to find an event by its name.Optional<Event>
EventRepository. findByNameAndAddress(String name, String address)
This JPA hibernate query allows users to find an event by its name and address.Optional<Event>
EventRepository. findByTime(Date time)
This JPA hibernate query allows users to find an event by the time the event was created.List<Event>
EventRepository. findEventsByUser(User user)
This Jpa hibernate query allows users to find all events they're a part ofMethods in edu.cnm.deepdive.picmegallery.model.dao with parameters of type Event Modifier and Type Method Description Optional<User>
UserRepository. findUsersByEvents(Event event)
-
Uses of Event in edu.cnm.deepdive.picmegallery.model.entity
Methods in edu.cnm.deepdive.picmegallery.model.entity that return Event Modifier and Type Method Description Event
Photo. getEvent()
Gets the Event associated with the Photo.Methods in edu.cnm.deepdive.picmegallery.model.entity that return types with arguments of type Event Modifier and Type Method Description List<Event>
User. getEvents()
This gets us a list of Events that the current user is part of/ included in.Methods in edu.cnm.deepdive.picmegallery.model.entity with parameters of type Event Modifier and Type Method Description void
Photo. setEvent(Event event)
Sets the Event that is associated with a Photo. -
Uses of Event in edu.cnm.deepdive.picmegallery.service
Methods in edu.cnm.deepdive.picmegallery.service that return Event Modifier and Type Method Description Event
EventService. save(Event event, User user, String passkey, String name)
This is a method to save an Event objectMethods in edu.cnm.deepdive.picmegallery.service that return types with arguments of type Event 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.Optional<Event>
EventService. get(long id, String passkey)
Gets a specified event by the event id and passkeyList<Event>
EventService. getAllUserEvents(User user)
This gets all the Events created by a user.Methods in edu.cnm.deepdive.picmegallery.service with parameters of type Event Modifier and Type Method Description void
EventService. delete(Event event)
A method that deletes a specified eventEvent
EventService. save(Event event, User user, String passkey, String name)
This is a method to save an Event objectPhoto
PhotoService. save(Photo photo, Event event)
Saves a new photo associated with a specific event into the PicMe database.
-