Package com.atlassian.bamboo.comment
Class CommentServiceImpl
java.lang.Object
com.atlassian.bamboo.comment.CommentServiceImpl
- All Implemented Interfaces:
CommentService
-
Constructor Summary
ConstructorsConstructorDescriptionCommentServiceImpl(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) voiddeleteComment(@NotNull Comment comment) voiddeleteComment(@NotNull Comment comment, @NotNull ResultsSummary resultsSummary) getAllCommentsForPlanResult(@NotNull ChainResultsSummary chainResultSummary) Get all comments on the given chain result, including those in child jobs.@Nullable CommentgetCommentById(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:
getCommentByIdin interfaceCommentService
-
getCommentsForEntity
- Specified by:
getCommentsForEntityin interfaceCommentService
-
getCommentsForEntity
- 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
- Specified by:
deleteCommentin interfaceCommentService
-