Package com.atlassian.bamboo.comment
Class CommentServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.comment.CommentServiceImpl
-
- All Implemented Interfaces:
CommentService
public class CommentServiceImpl extends Object implements CommentService
-
-
Constructor Summary
Constructors Constructor Description CommentServiceImpl(BambooPermissionManager bambooPermissionManager, CommentManager commentManager, JiraIssueUtils jiraIssueUtils, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentaddComment(@NotNull String content, @NotNull com.atlassian.user.User user, BambooIdProvider entity)voiddeleteComment(@NotNull Comment comment)voiddeleteComment(@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 CommentgetCommentById(long commentId)@NotNull List<Comment>getCommentsForEntity(long entityId)@NotNull List<Comment>getCommentsForEntity(BambooIdProvider entity)
-
-
-
Constructor Detail
-
CommentServiceImpl
public CommentServiceImpl(BambooPermissionManager bambooPermissionManager, CommentManager commentManager, JiraIssueUtils jiraIssueUtils, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
getCommentById
@Nullable public @Nullable Comment getCommentById(long commentId)
- Specified by:
getCommentByIdin interfaceCommentService
-
getCommentsForEntity
@NotNull public @NotNull List<Comment> getCommentsForEntity(long entityId)
- Specified by:
getCommentsForEntityin interfaceCommentService
-
getCommentsForEntity
@NotNull public @NotNull List<Comment> getCommentsForEntity(BambooIdProvider entity)
- Specified by:
getCommentsForEntityin interfaceCommentService
-
getAllCommentsForPlanResult
@NotNull public @NotNull Map<Long,List<Comment>> getAllCommentsForPlanResult(@NotNull @NotNull ChainResultsSummary chainResultSummary)
Description copied from interface:CommentServiceGet all comments on the given chain result, including those in child jobs.- Specified by:
getAllCommentsForPlanResultin interfaceCommentService
-
addComment
public Comment addComment(@NotNull @NotNull String content, @NotNull @NotNull com.atlassian.user.User user, BambooIdProvider entity) throws AccessDeniedException
- Specified by:
addCommentin interfaceCommentService- Throws:
AccessDeniedException
-
deleteComment
public void deleteComment(@NotNull @NotNull Comment comment, @NotNull @NotNull ResultsSummary resultsSummary)- Specified by:
deleteCommentin interfaceCommentService
-
deleteComment
public void deleteComment(@NotNull @NotNull Comment comment)- Specified by:
deleteCommentin interfaceCommentService
-
-