public class CommentManagerImpl extends Object implements CommentManager
Constructor and Description |
---|
CommentManagerImpl(CommentDao commentDao) |
Modifier and Type | Method and Description |
---|---|
Comment |
addComment(String content,
ResultsSummary resultsSummary,
com.atlassian.user.User user)
Deprecated.
since 5.0
|
Comment |
addComment(String content,
com.atlassian.user.User user,
long entityId) |
void |
deleteAllCommentsForEntity(BambooIdProvider entity) |
void |
deleteComment(Comment comment) |
void |
deleteComment(Comment comment,
ResultsSummary resultsSummary)
Deprecated.
since 5.0
|
Comment |
getCommentById(long commentId) |
List<Comment> |
getCommentsForBuildResults(PlanKey planKey)
Get all comments associated with Plan's build results
|
List<Comment> |
getCommentsForEntity(long entityId)
Get list of comments for a given entity
|
Map<Long,List<Comment>> |
getCommentsForJobResults(ChainResultsSummary chainResultSummary)
Get all comments on job results within the given chain result.
|
void |
saveComment(Comment comment)
Saves or updates a comment to the database
|
public CommentManagerImpl(CommentDao commentDao)
@Deprecated public Comment addComment(String content, ResultsSummary resultsSummary, com.atlassian.user.User user)
addComment
in interface CommentManager
@Deprecated public void deleteComment(@NotNull Comment comment, @NotNull ResultsSummary resultsSummary)
deleteComment
in interface CommentManager
@NotNull public Comment addComment(String content, com.atlassian.user.User user, long entityId)
addComment
in interface CommentManager
public void deleteComment(@NotNull Comment comment)
deleteComment
in interface CommentManager
public void deleteAllCommentsForEntity(@NotNull BambooIdProvider entity)
deleteAllCommentsForEntity
in interface CommentManager
@Nullable public Comment getCommentById(long commentId)
getCommentById
in interface CommentManager
@NotNull public List<Comment> getCommentsForEntity(long entityId)
CommentManager
getCommentsForEntity
in interface CommentManager
entityId
- id of entitypublic void saveComment(Comment comment)
CommentManager
saveComment
in interface CommentManager
comment
- to save@NotNull public List<Comment> getCommentsForBuildResults(@NotNull PlanKey planKey)
CommentManager
getCommentsForBuildResults
in interface CommentManager
planKey
- Plan's key@NotNull public Map<Long,List<Comment>> getCommentsForJobResults(@NotNull ChainResultsSummary chainResultSummary)
CommentManager
getCommentsForJobResults
in interface CommentManager
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.