Package com.atlassian.bamboo.comment
Interface CommentManager
-
- All Known Implementing Classes:
CommentManagerImpl
public interface CommentManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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 usegetEntityCommentCountNoTx(long)
instead@NotNull Integer
getEntityCommentCountNoTx(long entityId)
Returns the amount of comments filed against entityvoid
onCommentForEntityChanged(long entityId)
void
saveComment(Comment comment)
Saves or updates a comment to the database
-
-
-
Method Detail
-
addComment
@NotNull @NotNull Comment addComment(String content, com.atlassian.user.User user, long entityId)
-
deleteComment
void deleteComment(Comment comment)
-
deleteAllCommentsForEntity
void deleteAllCommentsForEntity(@NotNull @NotNull BambooIdProvider entity)
-
getCommentsForEntity
@NotNull @NotNull List<Comment> getCommentsForEntity(long entityId)
Get list of comments for a given entity- Parameters:
entityId
- id of entity- Returns:
- not null list of comments
-
getEntityCommentCount
@Deprecated @NotNull @NotNull Integer getEntityCommentCount(long entityId)
Deprecated.since 6.6 usegetEntityCommentCountNoTx(long)
insteadReturns the amount of comments filed against entity
-
getEntityCommentCountNoTx
@NotNull @NotNull Integer getEntityCommentCountNoTx(long entityId)
Returns the amount of comments filed against entity
-
getCommentById
@Nullable @Nullable Comment getCommentById(long commentId)
-
saveComment
void saveComment(Comment comment)
Saves or updates a comment to the database- Parameters:
comment
- to save
-
getCommentsForBuildResults
@NotNull @NotNull List<Comment> getCommentsForBuildResults(@NotNull @NotNull PlanKey planKey)
Get all comments associated with Plan's build results- Parameters:
planKey
- Plan's key- Returns:
- list of comments
-
getCommentsForJobResults
@NotNull @NotNull Map<Long,List<Comment>> getCommentsForJobResults(@NotNull @NotNull ChainResultsSummary chainResultSummary)
Get all comments on job results within the given chain result.
-
onCommentForEntityChanged
void onCommentForEntityChanged(long entityId)
-
-