Package com.atlassian.bamboo.comment
Class CommentServiceImpl
java.lang.Object
com.atlassian.bamboo.comment.CommentServiceImpl
- All Implemented Interfaces:
CommentService
-
Constructor Summary
ConstructorDescriptionCommentServiceImpl
(BambooPermissionManager bambooPermissionManager, CommentManager commentManager, JiraIssueUtils jiraIssueUtils, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionaddComment
(@NotNull String content, @NotNull com.atlassian.user.User user, BambooIdProvider entity) void
deleteComment
(@NotNull Comment comment) void
deleteComment
(@NotNull Comment comment, @NotNull ResultsSummary resultsSummary) getAllCommentsForPlanResult
(@NotNull ChainResultsSummary chainResultSummary) Get all comments on the given chain result, including those in child jobs.@Nullable Comment
getCommentById
(long commentId) getCommentsForEntity
(long entityId) getCommentsForEntity
(BambooIdProvider entity)
-
Constructor Details
-
CommentServiceImpl
public CommentServiceImpl(BambooPermissionManager bambooPermissionManager, CommentManager commentManager, JiraIssueUtils jiraIssueUtils, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
getCommentById
- Specified by:
getCommentById
in interfaceCommentService
-
getCommentsForEntity
- Specified by:
getCommentsForEntity
in interfaceCommentService
-
getCommentsForEntity
- Specified by:
getCommentsForEntity
in interfaceCommentService
-
getAllCommentsForPlanResult
@NotNull public @NotNull Map<Long,List<Comment>> getAllCommentsForPlanResult(@NotNull @NotNull ChainResultsSummary chainResultSummary) Description copied from interface:CommentService
Get all comments on the given chain result, including those in child jobs.- Specified by:
getAllCommentsForPlanResult
in interfaceCommentService
-
addComment
public Comment addComment(@NotNull @NotNull String content, @NotNull @NotNull com.atlassian.user.User user, BambooIdProvider entity) throws AccessDeniedException - Specified by:
addComment
in interfaceCommentService
- Throws:
AccessDeniedException
-
deleteComment
public void deleteComment(@NotNull @NotNull Comment comment, @NotNull @NotNull ResultsSummary resultsSummary) - Specified by:
deleteComment
in interfaceCommentService
-
deleteComment
- Specified by:
deleteComment
in interfaceCommentService
-