aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core
diff options
context:
space:
mode:
authorGravatar Killy2017-11-07 05:13:24 +0300
committerGravatar Killy2017-11-07 05:13:24 +0300
commit351e160783c6fcc9c9becd7d176b6c676d5c7f49 (patch)
tree3ce67bb21479e3ec14b9b9ec6f4d74722075a2c2 /juick-server-core
parent83815d291a7945c26a675c8543e8766ad2d1beda (diff)
tag state (subscription, bl) reading methods
Diffstat (limited to 'juick-server-core')
-rw-r--r--juick-server-core/src/main/java/com/juick/service/TagService.java9
1 files changed, 7 insertions, 2 deletions
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<Tag> getTags(Stream<String> tags, boolean autoCreate);
@@ -44,6 +44,7 @@ public interface TagService {
List<String> getUserBLTags(int uid);
List<String> getPopularTags();
+
List<TagStats> getTagStats();
List<Tag> updateTags(int mid, Collection<Tag> newTags);
@@ -55,4 +56,8 @@ public interface TagService {
List<Integer> getMessageTagsIDs(int mid);
boolean blacklistTag(User user, Tag tag);
+
+ boolean isInBL(User user, Tag tag);
+
+ boolean isSubscribed(User user, Tag tag);
}