main
Last change
on this file since e0ef1b1 was e0ef1b1, checked in by Test <matonikolov77@…>, 2 years ago |
Added CRUD for movies,persons,discussion,replies,genres
Added ajaxcalls
|
-
Property mode
set to
100644
|
File size:
742 bytes
|
Rev | Line | |
---|
[6e7b472] | 1 | package com.wediscussmovies.project.service;
|
---|
| 2 |
|
---|
[e0ef1b1] | 3 | import com.wediscussmovies.project.model.Discussion;
|
---|
| 4 | import com.wediscussmovies.project.model.User;
|
---|
[2a5d6a3] | 5 |
|
---|
| 6 | import java.util.List;
|
---|
| 7 |
|
---|
[6e7b472] | 8 | public interface DiscussionService {
|
---|
[2a5d6a3] | 9 | List<Discussion> listAll();
|
---|
| 10 | List<Discussion> listAllByTitle(String title);
|
---|
[e0ef1b1] | 11 | Discussion findById(Integer id);
|
---|
| 12 | void save(Character type,Integer id, String title, String text, User user);
|
---|
| 13 | void edit(Integer discussionId,Character type,Integer id, String title, String text);
|
---|
| 14 | void deleteById(Integer discussionId);
|
---|
| 15 | void likeDiscussion(Integer discussionId,Integer userId);
|
---|
| 16 | void unlikeDiscussion(Integer discussionId,Integer userId);
|
---|
| 17 | List<Discussion> findAllForPersonOrMovie(Integer id,Character type);
|
---|
[6e7b472] | 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.