com.atlassian.bamboo.comment
Class CommentServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.comment.CommentServiceImpl
All Implemented Interfaces:
CommentService

public class CommentServiceImpl
extends java.lang.Object
implements CommentService


Constructor Summary
CommentServiceImpl(CommentManager commentManager, JiraIssueUtils jiraIssueUtils, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 Comment addComment(java.lang.String content, ResultsSummary resultsSummary, com.atlassian.user.User user)
           
 Comment addComment(java.lang.String content, com.atlassian.user.User user, BambooIdProvider entity)
           
 Comment addComment(java.lang.String content, com.atlassian.user.User user, long entityId)
           
 void deleteComment(Comment comment)
           
 void deleteComment(Comment comment, ResultsSummary resultsSummary)
           
 Comment getCommentById(long commentId)
           
 java.util.List<Comment> getCommentsForEntity(BambooIdProvider entity)
           
 java.util.List<Comment> getCommentsForEntity(long entityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentServiceImpl

public CommentServiceImpl(CommentManager commentManager,
                          JiraIssueUtils jiraIssueUtils,
                          com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

getCommentById

public Comment getCommentById(long commentId)
Specified by:
getCommentById in interface CommentService

getCommentsForEntity

@NotNull
public java.util.List<Comment> getCommentsForEntity(long entityId)
Specified by:
getCommentsForEntity in interface CommentService

getCommentsForEntity

@NotNull
public java.util.List<Comment> getCommentsForEntity(BambooIdProvider entity)
Specified by:
getCommentsForEntity in interface CommentService

addComment

public Comment addComment(@NotNull
                          java.lang.String content,
                          @NotNull
                          ResultsSummary resultsSummary,
                          @NotNull
                          com.atlassian.user.User user)
Specified by:
addComment in interface CommentService

addComment

public Comment addComment(@NotNull
                          java.lang.String content,
                          @NotNull
                          com.atlassian.user.User user,
                          long entityId)
Specified by:
addComment in interface CommentService

addComment

public Comment addComment(@NotNull
                          java.lang.String content,
                          @NotNull
                          com.atlassian.user.User user,
                          BambooIdProvider entity)
Specified by:
addComment in interface CommentService

deleteComment

public void deleteComment(@NotNull
                          Comment comment,
                          @NotNull
                          ResultsSummary resultsSummary)
Specified by:
deleteComment in interface CommentService

deleteComment

public void deleteComment(@NotNull
                          Comment comment)
Specified by:
deleteComment in interface CommentService


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.