main
Last change
on this file since 3fe36de was c02189f, checked in by Petar Partaloski <ppartaloski@…>, 2 years ago |
Added new core functionalities, fixed bugs and improved visual clarity
|
-
Property mode
set to
100644
|
File size:
937 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;
|
---|
[c02189f] | 5 | import com.wediscussmovies.project.querymodels.DiscussionLikes;
|
---|
[2a5d6a3] | 6 |
|
---|
| 7 | import java.util.List;
|
---|
| 8 |
|
---|
[6e7b472] | 9 | public interface DiscussionService {
|
---|
[2a5d6a3] | 10 | List<Discussion> listAll();
|
---|
| 11 | List<Discussion> listAllByTitle(String title);
|
---|
[e0ef1b1] | 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);
|
---|
[c02189f] | 19 |
|
---|
| 20 | List<Discussion> findLikedDiscussionsByUser(User user);
|
---|
| 21 |
|
---|
| 22 | DiscussionLikes findLikesForDiscussionWithId(int discussionId);
|
---|
| 23 |
|
---|
[6e7b472] | 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.