Changeset e0ef1b1 in Git for src/main/java/com/wediscussmovies/project/service/PersonService.java
- Timestamp:
- 02/04/22 23:22:13 (3 years ago)
- Branches:
- main
- Children:
- 5b447b0
- Parents:
- 3ded84d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/service/PersonService.java
r3ded84d re0ef1b1 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model.*; 3 import com.wediscussmovies.project.ajaxmodels.Grade; 4 import com.wediscussmovies.project.model.Movie; 5 import com.wediscussmovies.project.model.Person; 6 import com.wediscussmovies.project.model.User; 4 7 8 import java.sql.Date; 5 9 import java.util.List; 6 import java.util.Optional;7 10 8 11 public interface PersonService { 12 List<Person> findAll(); 9 13 List<Person> findAllDirectors(); 10 14 List<Person> findAllActors(); 11 Optional<Person> findById(Integer person_id); 12 Optional<Person> findActorById(Integer id); 13 Optional<Person> findDirectorById(Integer id); 14 boolean save(Person person); 15 List<Person> findActorsByNameLike(String name); 16 List<Person> findActorsBySurnameLike(String surname); 17 List<Person> findDirectorsByNameLike(String name); 18 List<Person> findDirectorsBySurnameLike(String surname); 15 Person findById(Integer person_id); 16 17 Person save(String name, String surname, Character type, 18 Date birthDate, String image_url, String description, List<Integer> movieIds); 19 20 Person edit(Integer personId, String name, String surname, Character type, 21 Date birthDate, String image_url, String description, List<Integer> movieIds); 22 23 List<Person> findPersonsByNameOrSurname(Character type,String searchQuery); 24 25 List<Movie> findAllMoviesByPerson(Person person); 26 27 void deleteById(Integer id); 28 void addGradePerson(Integer personId, User user, Grade grade); 19 29 20 30 }
Note:
See TracChangeset
for help on using the changeset viewer.