com.atlassian.bamboo.comment
Class CommentManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.comment.CommentManagerImpl
All Implemented Interfaces:
CommentManager

public class CommentManagerImpl
extends Object
implements CommentManager


Constructor Summary
CommentManagerImpl(CommentDao commentDao)
           
 
Method Summary
 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
 void saveComment(Comment comment)
          Saves or updates a comment to the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentManagerImpl

public CommentManagerImpl(CommentDao commentDao)
Method Detail

addComment

@Deprecated
public Comment addComment(String content,
                                     ResultsSummary resultsSummary,
                                     com.atlassian.user.User user)
Deprecated. since 5.0

Specified by:
addComment in interface CommentManager

deleteComment

@Deprecated
public void deleteComment(@NotNull
                                     Comment comment,
                                     @NotNull
                                     ResultsSummary resultsSummary)
Deprecated. since 5.0

Specified by:
deleteComment in interface CommentManager

addComment

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

deleteComment

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

deleteAllCommentsForEntity

public void deleteAllCommentsForEntity(@NotNull
                                       BambooIdProvider entity)
Specified by:
deleteAllCommentsForEntity in interface CommentManager

getCommentById

@Nullable
public Comment getCommentById(long commentId)
Specified by:
getCommentById in interface CommentManager

getCommentsForEntity

@NotNull
public List<Comment> getCommentsForEntity(long entityId)
Description copied from interface: CommentManager
Get list of comments for a given entity

Specified by:
getCommentsForEntity in interface CommentManager
Parameters:
entityId - id of entity
Returns:
not null list of comments

saveComment

public void saveComment(Comment comment)
Description copied from interface: CommentManager
Saves or updates a comment to the database

Specified by:
saveComment in interface CommentManager
Parameters:
comment - to save

getCommentsForBuildResults

@NotNull
public List<Comment> getCommentsForBuildResults(@NotNull
                                                        PlanKey planKey)
Description copied from interface: CommentManager
Get all comments associated with Plan's build results

Specified by:
getCommentsForBuildResults in interface CommentManager
Parameters:
planKey - Plan's key
Returns:
list of comments


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.