From 351e160783c6fcc9c9becd7d176b6c676d5c7f49 Mon Sep 17 00:00:00 2001 From: Killy Date: Tue, 7 Nov 2017 05:13:24 +0300 Subject: tag state (subscription, bl) reading methods --- .../src/main/java/com/juick/service/TagService.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'juick-server-core/src/main/java') diff --git a/juick-server-core/src/main/java/com/juick/service/TagService.java b/juick-server-core/src/main/java/com/juick/service/TagService.java index 78e8f563..7cd7768f 100644 --- a/juick-server-core/src/main/java/com/juick/service/TagService.java +++ b/juick-server-core/src/main/java/com/juick/service/TagService.java @@ -29,9 +29,9 @@ import java.util.stream.Stream; * Created by aalexeev on 11/13/16. */ public interface TagService { - com.juick.Tag getTag(int tid); + Tag getTag(int tid); - com.juick.Tag getTag(String tag, boolean autoCreate); + Tag getTag(String tag, boolean autoCreate); List getTags(Stream tags, boolean autoCreate); @@ -44,6 +44,7 @@ public interface TagService { List getUserBLTags(int uid); List getPopularTags(); + List getTagStats(); List updateTags(int mid, Collection newTags); @@ -55,4 +56,8 @@ public interface TagService { List getMessageTagsIDs(int mid); boolean blacklistTag(User user, Tag tag); + + boolean isInBL(User user, Tag tag); + + boolean isSubscribed(User user, Tag tag); } -- cgit v1.2.3