public interface CommentManager
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(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 entityId)
Deprecated.
since 6.6 use
getEntityCommentCountNoTx(long) instead |
@NotNull 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
|
@NotNull @NotNull Comment addComment(String content, com.atlassian.user.User user, long entityId)
void deleteComment(Comment comment)
void deleteAllCommentsForEntity(@NotNull @NotNull BambooIdProvider entity)
@NotNull @NotNull List<Comment> getCommentsForEntity(long entityId)
entityId
- id of entity@Deprecated @NotNull @NotNull Integer getEntityCommentCount(long entityId)
getEntityCommentCountNoTx(long)
instead@NotNull @NotNull Integer getEntityCommentCountNoTx(long entityId)
@Nullable @Nullable Comment getCommentById(long commentId)
void saveComment(Comment comment)
comment
- to save@NotNull @NotNull List<Comment> getCommentsForBuildResults(@NotNull @NotNull PlanKey planKey)
planKey
- Plan's key@NotNull @NotNull Map<Long,List<Comment>> getCommentsForJobResults(@NotNull @NotNull ChainResultsSummary chainResultSummary)
void onCommentForEntityChanged(long entityId)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.