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