public interface CommentManager
Modifier and Type | Method and Description |
---|---|
Comment |
addComment(String content,
com.atlassian.user.User user,
long entityId) |
void |
deleteAllCommentsForEntity(BambooIdProvider entity) |
void |
deleteComment(Comment comment) |
Comment |
getCommentById(long commentId) |
List<Comment> |
getCommentsForBuildResults(PlanKey planKey)
Get all comments associated with Plan's build results
|
List<Comment> |
getCommentsForEntity(long entityId)
Get list of comments for a given entity
|
Map<Long,List<Comment>> |
getCommentsForJobResults(ChainResultsSummary chainResultSummary)
Get all comments on job results within the given chain result.
|
Integer |
getEntityCommentCount(long entityId)
Deprecated.
since 6.6 use
getEntityCommentCountNoTx(long) instead |
Integer |
getEntityCommentCountNoTx(long entityId)
Returns the amount of comments filed against entity
|
void |
onCommentForEntityChanged(long entityId) |
void |
saveComment(Comment comment)
Saves or updates a comment to the database
|
void deleteComment(Comment comment)
void deleteAllCommentsForEntity(@NotNull BambooIdProvider entity)
@NotNull List<Comment> getCommentsForEntity(long entityId)
entityId
- id of entity@Deprecated @NotNull Integer getEntityCommentCount(long entityId)
getEntityCommentCountNoTx(long)
instead@NotNull Integer getEntityCommentCountNoTx(long entityId)
@Nullable Comment getCommentById(long commentId)
void saveComment(Comment comment)
comment
- to save@NotNull List<Comment> getCommentsForBuildResults(@NotNull PlanKey planKey)
planKey
- Plan's key@NotNull Map<Long,List<Comment>> getCommentsForJobResults(@NotNull ChainResultsSummary chainResultSummary)
void onCommentForEntityChanged(long entityId)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.