Changeset e0ef1b1 in Git for src/main/java/com/wediscussmovies/project/service/MovieService.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/MovieService.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.Genre; 5 import com.wediscussmovies.project.model.Movie; 6 import com.wediscussmovies.project.model.Person; 7 import com.wediscussmovies.project.model.User; 4 8 9 import java.sql.Date; 5 10 import java.util.List; 6 import java.util.Optional;7 11 8 12 public interface MovieService { 9 public List<Movie> listAll(); 10 public List<Movie> searchByTitle(String title); 11 public Optional<Movie> findById(Integer id); 12 public Movie save(Movie movie); 13 public void deleteById(Integer id); 13 List<Movie> listAll(); 14 List<Movie> listAllByType(Character type); 15 List<Movie> listAllWithoutDirector(); 16 List<Movie> searchByTitle(String title); 17 Movie findById(Integer id); 18 Movie save(String title, String description, String imageUrl, Date airingDate,Double rating, 19 Integer directorId,List<Integer> actorIds,List<Integer> genreIds); 20 21 Movie edit(Integer movieId,String title, String description, String imageUrl, Date airingDate,Double rating, 22 Integer directorId,List<Integer> actorIds, List<Integer> genreIds); 23 24 List<Person> findAllActorsForMovie(Movie movie); 25 List<Genre> findAllGenresForMovie(Movie movie); 26 27 void likeMovie(Integer movieId, Integer userId); 28 void unlikeMovie(Integer movieId,Integer userId); 29 30 List<Movie> findLikedMoviesByUser(User user); 31 32 void deleteById(Integer id); 33 34 void addGradeMovie(Integer movieId, User user, Grade grade); 14 35 }
Note:
See TracChangeset
for help on using the changeset viewer.