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:
1004 bytes
|
Line | |
---|
1 | package com.wediscussmovies.project.service;
|
---|
2 |
|
---|
3 | import com.wediscussmovies.project.model.Discussion;
|
---|
4 | import com.wediscussmovies.project.model.User;
|
---|
5 | import com.wediscussmovies.project.querymodels.DiscussionLikesQM;
|
---|
6 |
|
---|
7 | import java.util.List;
|
---|
8 |
|
---|
9 | public interface DiscussionService {
|
---|
10 | List<Discussion> listAll();
|
---|
11 | List<Discussion> listAllByTitle(String title);
|
---|
12 | Discussion findById(Integer id);
|
---|
13 | void save(Character type,Integer id, String title, String text, User user);
|
---|
14 | void edit(Integer discussionId,Character type,Integer id, String title, String text);
|
---|
15 | void deleteById(Integer discussionId);
|
---|
16 | void likeDiscussion(Integer discussionId,Integer userId);
|
---|
17 | void unlikeDiscussion(Integer discussionId,Integer userId);
|
---|
18 | List<Discussion> findAllForPersonOrMovie(Integer id,Character type);
|
---|
19 |
|
---|
20 | List<Discussion> findLikedDiscussionsByUser(User user);
|
---|
21 |
|
---|
22 | DiscussionLikesQM findLikesForDiscussionWithId(Integer discussionId);
|
---|
23 |
|
---|
24 | List<DiscussionLikesQM> findLikesForAllDiscussions();
|
---|
25 |
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.