diff options
author | Vitaly Takmazov | 2016-11-16 14:30:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-16 16:21:53 +0300 |
commit | ffb24e0d469aaafa35ad5f460a7bdf771382f0ff (patch) | |
tree | 0d8fc9114b916f9058cccb01fcf8281a0a209284 /juick-server/src/main/java/com/juick/service/MessagesService.java | |
parent | e8faf851327a12f28ae664a6f7db6c844d0ba9bf (diff) |
server-core -> juick-server
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 | 81 |
1 files changed, 81 insertions, 0 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 new file mode 100644 index 00000000..00f97b75 --- /dev/null +++ b/juick-server/src/main/java/com/juick/service/MessagesService.java @@ -0,0 +1,81 @@ +package com.juick.service; + +import com.juick.User; +import org.springframework.jdbc.core.JdbcTemplate; + +import java.util.List; + +/** + * Created by aalexeev on 11/13/16. + */ +public interface MessagesService { + int createMessage(int uid, String txt, String attachment, List<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<com.juick.Tag> getMessageTags(int mid); + + List<Integer> getMessageTagsIDs(int mid); + + List<String> getMessageRecommendations(int mid); + + List<Integer> getAll(int visitor_uid, int before); + + List<Integer> getTag(int tid, int visitor_uid, int before, int cnt); + + List<Integer> getTags(String tids, int visitor_uid, int before, int cnt); + + List<Integer> getPlace(int place_id, int visitor_uid, 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 visitor_uid, int before); + + List<Integer> getPhotos(int visitor_uid, int before); + + List<Integer> getSearch(JdbcTemplate sqlSearch, 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> getUserRecommendations(int UID, int before); + + List<Integer> getUserPhotos(int UID, int privacy, int before); + + List<Integer> getUserSearch(JdbcTemplate sqlSearch, int UID, String search, int privacy, int before); + + List<com.juick.Message> getMessages(List<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); +} |