Interface ConversationsService
-
public interface ConversationsService
-
-
Field Summary
Fields Modifier and Type Field Description static StringPOSTS_CACHE_NAMEstatic StringPROP_DISABLE_DISCUSSIONSstatic StringPROP_MAX_THREAD_DEPTHstatic StringPROP_THREADS_PAGE_SIZEstatic StringREFERENCE_ROOTstatic 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_DESCENDINGstatic StringSTATS_CACHE_NAMEstatic StringTOOL_ID
-
Method Summary
-
-
-
Field Detail
-
TOOL_ID
static final String TOOL_ID
- See Also:
- Constant Field Values
-
REFERENCE_ROOT
static final String REFERENCE_ROOT
- See Also:
- Constant Field Values
-
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
-
PROP_THREADS_PAGE_SIZE
static final String PROP_THREADS_PAGE_SIZE
- See Also:
- Constant Field Values
-
PROP_MAX_THREAD_DEPTH
static final String PROP_MAX_THREAD_DEPTH
- See Also:
- Constant Field Values
-
PROP_DISABLE_DISCUSSIONS
static final String PROP_DISABLE_DISCUSSIONS
- See Also:
- Constant Field Values
-
STATS_CACHE_NAME
static final String STATS_CACHE_NAME
- See Also:
- Constant Field Values
-
POSTS_CACHE_NAME
static final String POSTS_CACHE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBlankTopic
TopicTransferBean getBlankTopic(String siteId) throws ConversationsPermissionsException
-
getTopic
Optional<TopicTransferBean> getTopic(String siteId) throws ConversationsPermissionsException
-
currentUserCanViewTopic
boolean currentUserCanViewTopic(ConversationsTopic topic)
-
getTopicsForSite
List<TopicTransferBean> getTopicsForSite(String siteId) throws ConversationsPermissionsException
-
saveTopic
TopicTransferBean saveTopic(TopicTransferBean topicBean, boolean sendMessage) throws ConversationsPermissionsException
-
deleteTopic
void deleteTopic(String topicId) throws ConversationsPermissionsException
-
pinTopic
void pinTopic(String topicId, boolean pinned) throws ConversationsPermissionsException
-
lockTopic
TopicTransferBean lockTopic(String topicId, boolean locked, boolean needsModerator) throws ConversationsPermissionsException
-
hideTopic
ConversationsTopic hideTopic(String topicId, boolean hidden, boolean needsModerator) throws ConversationsPermissionsException
-
bookmarkTopic
void bookmarkTopic(String topicId, boolean bookmarked) throws ConversationsPermissionsException
-
saveTopicReactions
Map<Reaction,Integer> saveTopicReactions(String topicId, Map<Reaction,Boolean> reactions) throws ConversationsPermissionsException
-
getPost
Optional<PostTransferBean> getPost(String postId) throws ConversationsPermissionsException
-
savePost
PostTransferBean savePost(PostTransferBean postBean, boolean sendMessage) throws ConversationsPermissionsException
-
getNumberOfThreadPages
int getNumberOfThreadPages(String siteId, String topicId) throws ConversationsPermissionsException
-
getPostsByTopicId
Collection<PostTransferBean> getPostsByTopicId(String siteId, String topicId, Integer page, PostSort sort, String requestedPostId) throws ConversationsPermissionsException
-
deletePost
void 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
PostTransferBean hidePost(String siteId, String topicId, String postId, boolean hiddn) throws ConversationsPermissionsException
-
savePostReactions
Map<Reaction,Integer> savePostReactions(String topicId, String postId, Map<Reaction,Boolean> reactions) throws ConversationsPermissionsException
-
markPostsViewed
void markPostsViewed(Set<String> postIds, String topicId) throws ConversationsPermissionsException
-
currentUserCanViewPost
boolean currentUserCanViewPost(ConversationsPost post)
-
currentUserCanViewComment
boolean currentUserCanViewComment(ConversationsComment comment)
-
getComment
Optional<CommentTransferBean> getComment(String commentId) throws ConversationsPermissionsException
-
saveComment
CommentTransferBean saveComment(CommentTransferBean commentBean) throws ConversationsPermissionsException
-
deleteComment
void 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
-
-