public interface CommentReactionManager
Modifier and Type | Method and Description |
---|---|
CommentReactionDTO |
create(long commentId,
String emoticon,
String userKey,
java.time.Instant created)
Creates a database record for the reaction made by the user with given key to the given comment and given emoji.
|
void |
delete(long commentId,
String emoticon,
String userKey)
Deletes the user reaction with given emoji to given comment.
|
void |
deleteAllByCommentId(long commentId)
Deletes all reactions associated with the comment with given ID.
|
boolean |
exists(long commentId,
String emoticon,
String userKey)
Determines if the user with given key already reacted with given emoji to given comment.
|
Collection<CommentReactionDTO> |
findByCommentAndEmoticon(long commentId,
String emoticon)
Returns all reactions for given emoji and given comment.
|
Collection<CommentReactionDTO> |
findByCommentId(long commentId)
Returns all the reactions for given comment.
|
CommentReactionDTO |
findById(long id)
Returns the reaction with given ID.
|
long |
getReactionCount(long commentId,
String emoticon)
Returns a number of users who reacted with given emoji to given comment.
|
CommentReactionDTO create(long commentId, String emoticon, String userKey, java.time.Instant created)
commentId
- the ID of the commentemoticon
- Unicode of the emojiuserKey
- the key of the user who reactedcreated
- the timestamp of reactionCommentReactionDTO
objectCommentReactionDTO findById(long id)
id
- the ID of the reactionCommentReactionDTO
objectvoid delete(long commentId, String emoticon, String userKey)
commentId
- the ID of the commentemoticon
- Unicode of the emojiuserKey
- the key of the user performing the operationCollection<CommentReactionDTO> findByCommentId(long commentId)
commentId
- the ID of the commentCommentReactionDTO
long getReactionCount(long commentId, String emoticon)
commentId
- the ID of the commentemoticon
- Unicode of the emojiCollection<CommentReactionDTO> findByCommentAndEmoticon(long commentId, String emoticon)
commentId
- the ID of the commentemoticon
- Unicode of the emojiCommentReactionDTO
boolean exists(long commentId, String emoticon, String userKey)
commentId
- the ID of the commentemoticon
- Unicode of the emojiuserKey
- the key of the user performing the operationvoid deleteAllByCommentId(long commentId)
commentId
- the ID of the commentCopyright © 2002-2022 Atlassian. All Rights Reserved.
View cookie preferences