public class CommentManagerImpl extends Object implements CommentManager
| Constructor and Description |
|---|
CommentManagerImpl(CommentDao commentDao) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Comment |
addComment(String content,
com.atlassian.user.User user,
long entityId) |
void |
deleteAllCommentsForEntity(@NotNull BambooIdProvider entity) |
void |
deleteComment(@NotNull Comment comment) |
@Nullable Comment |
getCommentById(long commentId) |
@NotNull List<Comment> |
getCommentsForBuildResults(@NotNull PlanKey planKey)
Get all comments associated with Plan's build results
|
@NotNull List<Comment> |
getCommentsForEntity(long entityId)
Get list of comments for a given entity
|
@NotNull Map<Long,List<Comment>> |
getCommentsForJobResults(@NotNull ChainResultsSummary chainResultSummary)
Get all comments on job results within the given chain result.
|
@NotNull Integer |
getEntityCommentCount(long id)
Returns the amount of comments filed against entity
|
@NotNull Integer |
getEntityCommentCountNoTx(long id)
Returns the amount of comments filed against entity
|
void |
onCommentForEntityChanged(long entityId) |
void |
saveComment(Comment comment)
Saves or updates a comment to the database
|
public CommentManagerImpl(CommentDao commentDao)
@NotNull public @NotNull Comment addComment(String content, com.atlassian.user.User user, long entityId)
addComment in interface CommentManagerpublic void deleteComment(@NotNull
@NotNull Comment comment)
deleteComment in interface CommentManagerpublic void deleteAllCommentsForEntity(@NotNull
@NotNull BambooIdProvider entity)
deleteAllCommentsForEntity in interface CommentManager@Nullable public @Nullable Comment getCommentById(long commentId)
getCommentById in interface CommentManager@NotNull public @NotNull List<Comment> getCommentsForEntity(long entityId)
CommentManagergetCommentsForEntity in interface CommentManagerentityId - id of entity@NotNull public @NotNull Integer getEntityCommentCount(long id)
CommentManagergetEntityCommentCount in interface CommentManager@NotNull public @NotNull Integer getEntityCommentCountNoTx(long id)
CommentManagergetEntityCommentCountNoTx in interface CommentManagerpublic void saveComment(Comment comment)
CommentManagersaveComment in interface CommentManagercomment - to save@NotNull public @NotNull List<Comment> getCommentsForBuildResults(@NotNull @NotNull PlanKey planKey)
CommentManagergetCommentsForBuildResults in interface CommentManagerplanKey - Plan's key@NotNull public @NotNull Map<Long,List<Comment>> getCommentsForJobResults(@NotNull @NotNull ChainResultsSummary chainResultSummary)
CommentManagergetCommentsForJobResults in interface CommentManagerpublic void onCommentForEntityChanged(long entityId)
onCommentForEntityChanged in interface CommentManagerCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.