main
Last change
on this file since 3c0f9a9 was e0ef1b1, checked in by Test <matonikolov77@…>, 3 years ago |
Added CRUD for movies,persons,discussion,replies,genres
Added ajaxcalls
|
-
Property mode
set to
100644
|
File size:
742 bytes
|
Line | |
---|
1 | package com.wediscussmovies.project.service;
|
---|
2 |
|
---|
3 | import com.wediscussmovies.project.model.Discussion;
|
---|
4 | import com.wediscussmovies.project.model.User;
|
---|
5 |
|
---|
6 | import java.util.List;
|
---|
7 |
|
---|
8 | public interface DiscussionService {
|
---|
9 | List<Discussion> listAll();
|
---|
10 | List<Discussion> listAllByTitle(String title);
|
---|
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);
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.