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 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(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:
getCommentById
in interfaceCommentService
-
getCommentsForEntity
@NotNull public @NotNull List<Comment> getCommentsForEntity(long entityId)
- Specified by:
getCommentsForEntity
in interfaceCommentService
-
getCommentsForEntity
@NotNull public @NotNull List<Comment> getCommentsForEntity(BambooIdProvider entity)
- 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
public void deleteComment(@NotNull @NotNull Comment comment)
- Specified by:
deleteComment
in interfaceCommentService
-
-