aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core/src/main/java/com/juick/service/TagService.java
blob: 2fcc709725b4fbcaf793fa25c702bc1e95a7b39d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.juick.service;

import com.juick.Tag;
import com.juick.server.helpers.TagStats;

import java.util.Collection;
import java.util.List;

/**
 * Created by aalexeev on 11/13/16.
 */
public interface TagService {
    com.juick.Tag getTag(int tid);

    com.juick.Tag getTag(String tag, boolean autoCreate);

    List<Tag> getTags(String[] tags, boolean autoCreate);

    boolean getTagNoIndex(int tagId);

    int createTag(String name);

    List<TagStats> getUserTagStats(int uid);

    List<String> getUserBLTags(int uid);

    List<String> getPopularTags();
    List<TagStats> getTagStats();

    List<Tag> updateTags(int mid, Collection<Tag> newTags);

    List<Tag> fromString(String txt, boolean tagsOnly);

    List<TagStats> getMessageTags(int mid);

    List<Integer> getMessageTagsIDs(int mid);
}