Interface ConversationsService
-
public interface ConversationsService
-
-
Field Summary
Fields Modifier and Type Field Description static StringSORT_NAME_ASCENDINGstatic StringSORT_NAME_DESCENDINGstatic StringSORT_POSTS_CREATED_ASCENDINGstatic StringSORT_POSTS_CREATED_DESCENDINGstatic StringSORT_REACTIONS_MADE_ASCENDINGstatic StringSORT_REACTIONS_MADE_DESCENDINGstatic StringSORT_TOPICS_CREATED_ASCENDINGstatic StringSORT_TOPICS_CREATED_DESCENDINGstatic StringSORT_TOPICS_VIEWED_ASCENDINGstatic StringSORT_TOPICS_VIEWED_DESCENDING
-
Method Summary
-
-
-
Field Detail
-
SORT_NAME_ASCENDING
static final String SORT_NAME_ASCENDING
- See Also:
- Constant Field Values
-
SORT_NAME_DESCENDING
static final String SORT_NAME_DESCENDING
- See Also:
- Constant Field Values
-
SORT_TOPICS_CREATED_ASCENDING
static final String SORT_TOPICS_CREATED_ASCENDING
- See Also:
- Constant Field Values
-
SORT_TOPICS_CREATED_DESCENDING
static final String SORT_TOPICS_CREATED_DESCENDING
- See Also:
- Constant Field Values
-
SORT_TOPICS_VIEWED_ASCENDING
static final String SORT_TOPICS_VIEWED_ASCENDING
- See Also:
- Constant Field Values
-
SORT_TOPICS_VIEWED_DESCENDING
static final String SORT_TOPICS_VIEWED_DESCENDING
- See Also:
- Constant Field Values
-
SORT_POSTS_CREATED_ASCENDING
static final String SORT_POSTS_CREATED_ASCENDING
- See Also:
- Constant Field Values
-
SORT_POSTS_CREATED_DESCENDING
static final String SORT_POSTS_CREATED_DESCENDING
- See Also:
- Constant Field Values
-
SORT_REACTIONS_MADE_ASCENDING
static final String SORT_REACTIONS_MADE_ASCENDING
- See Also:
- Constant Field Values
-
SORT_REACTIONS_MADE_DESCENDING
static final String SORT_REACTIONS_MADE_DESCENDING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTopicsForSite
List<TopicTransferBean> getTopicsForSite(String siteId) throws ConversationsPermissionsException
-
saveTopic
TopicTransferBean saveTopic(TopicTransferBean topicBean) throws ConversationsPermissionsException
-
deleteTopic
boolean deleteTopic(String topicId) throws ConversationsPermissionsException
-
pinTopic
void pinTopic(String topicId, boolean pinned) throws ConversationsPermissionsException
-
lockTopic
TopicTransferBean lockTopic(String topicId, boolean locked) throws ConversationsPermissionsException
-
hideTopic
void hideTopic(String topicId, boolean hidden) throws ConversationsPermissionsException
-
bookmarkTopic
void bookmarkTopic(String topicId, boolean bookmarked) throws ConversationsPermissionsException
-
saveTopicReactions
Map<Reaction,Integer> saveTopicReactions(String topicId, Map<Reaction,Boolean> reactions) throws ConversationsPermissionsException
-
savePost
PostTransferBean savePost(PostTransferBean postBean) throws ConversationsPermissionsException
-
getPostsByTopicId
List<PostTransferBean> getPostsByTopicId(String siteId, String topicId) throws ConversationsPermissionsException
-
deletePost
boolean deletePost(String siteId, String topicId, String postId, boolean setTopicResolved) throws ConversationsPermissionsException
-
upvotePost
PostTransferBean upvotePost(String siteId, String topicId, String postId) throws ConversationsPermissionsException
-
unUpvotePost
PostTransferBean unUpvotePost(String siteId, String postId) throws ConversationsPermissionsException
-
lockPost
PostTransferBean lockPost(String siteId, String topicId, String postId, boolean locked) throws ConversationsPermissionsException
-
hidePost
void hidePost(String postId, boolean hidden, String siteId) throws ConversationsPermissionsException
-
savePostReactions
Map<Reaction,Integer> savePostReactions(String postId, Map<Reaction,Boolean> reactions) throws ConversationsPermissionsException
-
markPostsViewed
void markPostsViewed(Set<String> postIds, String topicId) throws ConversationsPermissionsException
-
saveComment
CommentTransferBean saveComment(CommentTransferBean commentBean) throws ConversationsPermissionsException
-
deleteComment
boolean deleteComment(String siteId, String commentId) throws ConversationsPermissionsException
-
createTags
List<Tag> createTags(List<Tag> tags) throws ConversationsPermissionsException
-
saveTag
Tag saveTag(Tag tag) throws ConversationsPermissionsException
-
getTagsForSite
List<Tag> getTagsForSite(String siteId) throws ConversationsPermissionsException
-
deleteTag
void deleteTag(Long tagId) throws ConversationsPermissionsException
-
getSettingsForSite
Settings getSettingsForSite(String siteId) throws ConversationsPermissionsException
-
saveSettings
Settings saveSettings(Settings settings) throws ConversationsPermissionsException
-
getConvStatusForSiteAndUser
ConvStatus getConvStatusForSiteAndUser(String siteId, String userId) throws ConversationsPermissionsException
-
saveConvStatus
void saveConvStatus(ConvStatus convStatus) throws ConversationsPermissionsException
-
-