public class CommentServiceImpl extends Object implements CommentService
Constructor and Description |
---|
CommentServiceImpl(CommentManager commentManager,
JiraIssueUtils jiraIssueUtils,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
Comment |
addComment(String content,
com.atlassian.user.User user,
BambooIdProvider entity) |
void |
deleteComment(Comment comment) |
void |
deleteComment(Comment comment,
ResultsSummary resultsSummary) |
Map<Long,List<Comment>> |
getAllCommentsForPlanResult(ChainResultsSummary chainResultSummary)
Get all comments on the given chain result, including those in
child jobs.
|
Comment |
getCommentById(long commentId) |
List<Comment> |
getCommentsForEntity(BambooIdProvider entity) |
List<Comment> |
getCommentsForEntity(long entityId) |
public CommentServiceImpl(CommentManager commentManager, JiraIssueUtils jiraIssueUtils, com.atlassian.event.api.EventPublisher eventPublisher)
@Nullable public Comment getCommentById(long commentId)
getCommentById
in interface CommentService
@NotNull public List<Comment> getCommentsForEntity(long entityId)
getCommentsForEntity
in interface CommentService
@NotNull public List<Comment> getCommentsForEntity(BambooIdProvider entity)
getCommentsForEntity
in interface CommentService
@NotNull public Map<Long,List<Comment>> getAllCommentsForPlanResult(@NotNull ChainResultsSummary chainResultSummary)
CommentService
getAllCommentsForPlanResult
in interface CommentService
public Comment addComment(@NotNull String content, @NotNull com.atlassian.user.User user, BambooIdProvider entity)
addComment
in interface CommentService
public void deleteComment(@NotNull Comment comment, @NotNull ResultsSummary resultsSummary)
deleteComment
in interface CommentService
public void deleteComment(@NotNull Comment comment)
deleteComment
in interface CommentService
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.