source: Git/Sources/src/main/java/com/wediscussmovies/project/service/PersonService.java

main
Last change on this file was 980eeda, checked in by Test <matonikolov77@…>, 2 years ago

Restructuring project

  • Property mode set to 100644
File size: 1.1 KB
Line 
1package com.wediscussmovies.project.service;
2
3import com.wediscussmovies.project.ajaxmodels.Grade;
4import com.wediscussmovies.project.model.Movie;
5import com.wediscussmovies.project.model.Person;
6import com.wediscussmovies.project.model.User;
7import com.wediscussmovies.project.model.relation.MovieLikes;
8
9import java.sql.Date;
10import java.util.List;
11import java.util.stream.Collectors;
12
13public interface PersonService {
14 List<Person> findAll();
15 List<Person> findAllDirectors();
16 List<Person> findAllActors();
17 Person findById(Integer person_id);
18
19 Person save(String name, String surname, Character type,
20 Date birthDate, String image_url, String description, List<Integer> movieIds);
21
22 Person edit(Integer personId, String name, String surname, Character type,
23 Date birthDate, String image_url, String description, List<Integer> movieIds);
24
25 List<Person> findPersonsByNameOrSurname(Character type,String searchQuery);
26
27 List<Movie> findAllMoviesByPerson(Person person);
28
29 void deleteById(Integer id);
30 void addGradePerson(Integer personId, User user, Grade grade);
31}
Note: See TracBrowser for help on using the repository browser.