Package com.atlassian.bamboo.comment
Class CommentManagerImpl
java.lang.Object
com.atlassian.bamboo.comment.CommentManagerImpl
- All Implemented Interfaces:
CommentManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@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) getCommentsForBuildResults
(@NotNull PlanKey planKey) Get all comments associated with Plan's build resultsgetCommentsForEntity
(long entityId) Get list of comments for a given entitygetCommentsForJobResults
(@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 entityvoid
onCommentForEntityChanged
(long entityId) void
saveComment
(Comment comment) Saves or updates a comment to the database
-
Constructor Details
-
CommentManagerImpl
-
-
Method Details
-
addComment
@NotNull public @NotNull Comment addComment(String content, com.atlassian.user.User user, long entityId) - Specified by:
addComment
in interfaceCommentManager
-
deleteComment
- Specified by:
deleteComment
in interfaceCommentManager
-
deleteAllCommentsForEntity
- Specified by:
deleteAllCommentsForEntity
in interfaceCommentManager
-
getCommentById
- Specified by:
getCommentById
in interfaceCommentManager
-
getCommentsForEntity
Description copied from interface:CommentManager
Get list of comments for a given entity- Specified by:
getCommentsForEntity
in interfaceCommentManager
- Parameters:
entityId
- id of entity- Returns:
- not null list of comments
-
getEntityCommentCount
Description copied from interface:CommentManager
Returns the amount of comments filed against entity- Specified by:
getEntityCommentCount
in interfaceCommentManager
-
getEntityCommentCountNoTx
Description copied from interface:CommentManager
Returns the amount of comments filed against entity- Specified by:
getEntityCommentCountNoTx
in interfaceCommentManager
-
saveComment
Description copied from interface:CommentManager
Saves or updates a comment to the database- Specified by:
saveComment
in interfaceCommentManager
- Parameters:
comment
- to save
-
getCommentsForBuildResults
@NotNull public @NotNull List<Comment> getCommentsForBuildResults(@NotNull @NotNull PlanKey planKey) Description copied from interface:CommentManager
Get all comments associated with Plan's build results- Specified by:
getCommentsForBuildResults
in interfaceCommentManager
- Parameters:
planKey
- Plan's key- Returns:
- list of comments
-
getCommentsForJobResults
@NotNull public @NotNull Map<Long,List<Comment>> getCommentsForJobResults(@NotNull @NotNull ChainResultsSummary chainResultSummary) Description copied from interface:CommentManager
Get all comments on job results within the given chain result.- Specified by:
getCommentsForJobResults
in interfaceCommentManager
-
onCommentForEntityChanged
public void onCommentForEntityChanged(long entityId) - Specified by:
onCommentForEntityChanged
in interfaceCommentManager
-