diff options
author | 2017-06-29 14:03:04 +0300 | |
---|---|---|
committer | 2017-06-29 14:03:04 +0300 | |
commit | 02723131139806c761539a42a5fa80b68ecadee8 (patch) | |
tree | ca66f22993908758385f708eb2da4e4aeb20510a /juick-server/src/main/java/com/juick/service/MessagesService.java | |
parent | 4cc4b08f4377b7db697abdb533c625da608eb3d3 (diff) |
project structure: split server into jdbc + web
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/MessagesService.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesService.java | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesService.java b/juick-server/src/main/java/com/juick/service/MessagesService.java deleted file mode 100644 index 8e9d916b..00000000 --- a/juick-server/src/main/java/com/juick/service/MessagesService.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.juick.service; - -import com.juick.Message; -import com.juick.User; -import com.juick.server.helpers.ResponseReply; -import org.springframework.jdbc.core.JdbcTemplate; - -import java.util.Collection; -import java.util.List; - -/** - * Created by aalexeev on 11/13/16. - */ -public interface MessagesService { - int createMessage(int uid, String txt, String attachment, Collection<com.juick.Tag> tags); - - int createReply(int mid, int rid, int uid, String txt, String attachment); - - int getReplyIDIncrement(int mid); - - boolean recommendMessage(int mid, int vuid); - - boolean canViewThread(int mid, int uid); - - boolean isReadOnly(int mid); - - boolean isSubscribed(int uid, int mid); - - int getMessagePrivacy(int mid); - - com.juick.Message getMessage(int mid); - - com.juick.Message getReply(int mid, int rid); - - User getMessageAuthor(int mid); - - List<String> getMessageRecommendations(int mid); - - List<Integer> getAll(int visitorUid, int before); - - List<Integer> getTag(int tid, int visitorUid, int before, int cnt); - - List<Integer> getTags(String tids, int visitorUid, int before, int cnt); - - List<Integer> getPlace(int placeId, int visitorUid, int before); - - List<Integer> getMyFeed(int uid, int before); - - List<Integer> getPrivate(int uid, int before); - - List<Integer> getDiscussions(int uid, int before); - - List<Integer> getRecommended(int uid, int before); - - List<Integer> getPopular(int visitorUid, int before); - - List<Integer> getPhotos(int visitorUid, int before); - - List<Integer> getSearch(String search, int before); - - List<Integer> getUserBlog(int uid, int privacy, int before); - - List<Integer> getUserTag(int uid, int tid, int privacy, int before); - - List<Integer> getUserBlogAtDay(int uid, int privacy, int daysback); - - List<Integer> getUserBlogWithRecommendations(int uid, int privacy, int before); - - List<Integer> getUserRecommendations(int uid, int before); - - List<Integer> getUserPhotos(int uid, int privacy, int before); - - List<Integer> getUserSearch(int UID, String search, int privacy, int before); - - List<com.juick.Message> getMessages(Collection<Integer> mids); - - List<com.juick.Message> getReplies(int mid); - - boolean setMessagePopular(int mid, int popular); - - boolean setMessagePrivacy(int mid); - - boolean deleteMessage(int uid, int mid); - - List<Integer> getLastMessages(int hours); - - List<ResponseReply> getLastReplies(int hours); -} |