com.atlassian.bamboo.comment
Class CommentManagerImpl

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

public class CommentManagerImpl
extends java.lang.Object
implements CommentManager


Constructor Summary
CommentManagerImpl()
           
 
Method Summary
 Comment addComment(java.lang.String content, ResultsSummary resultsSummary, com.atlassian.user.User user)
          Deprecated. 
 Comment addComment(java.lang.String content, com.atlassian.user.User user, long entityId)
           
 void deleteAllCommentsForEntity(BambooIdProvider entity)
           
 void deleteComment(Comment comment)
           
 void deleteComment(Comment comment, ResultsSummary resultsSummary)
          Deprecated. 
 Comment getCommentById(long commentId)
           
 java.util.List<Comment> getCommentsByUserForPlans(java.lang.String userName, java.util.List<? extends Plan> plans)
          Returns the list of comments written by a specified user for the requested plans.
 java.util.List<Comment> getCommentsForEntity(long entityId)
           
 java.util.List<Comment> getPlanResultComments(ResultsSummary resultsSummary)
          Deprecated. 
 boolean hasPlanResultComments(ResultsSummary resultsSummary)
          Deprecated. 
 void saveComment(Comment comment)
          Saves or updates a comment to the database
 void setCommentDao(CommentDao commentDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentManagerImpl

public CommentManagerImpl()
Method Detail

addComment

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

Specified by:
addComment in interface CommentManager

addComment

public Comment addComment(java.lang.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

deleteComment

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

Specified by:
deleteComment in interface CommentManager

getCommentById

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

getCommentsForEntity

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

hasPlanResultComments

@Deprecated
public boolean hasPlanResultComments(@NotNull
                                                ResultsSummary resultsSummary)
Deprecated. 

Specified by:
hasPlanResultComments in interface CommentManager

getPlanResultComments

@NotNull
@Deprecated
public java.util.List<Comment> getPlanResultComments(@NotNull
                                                                        ResultsSummary resultsSummary)
Deprecated. 

Description copied from interface: CommentManager
Returns the list of comments attached to a plan and its subplans sorted by date (newest first).

Specified by:
getPlanResultComments in interface CommentManager
Returns:

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

setCommentDao

public void setCommentDao(CommentDao commentDao)

getCommentsByUserForPlans

@NotNull
public java.util.List<Comment> getCommentsByUserForPlans(@NotNull
                                                                 java.lang.String userName,
                                                                 @NotNull
                                                                 java.util.List<? extends Plan> plans)
Description copied from interface: CommentManager
Returns the list of comments written by a specified user for the requested plans.

Specified by:
getCommentsByUserForPlans in interface CommentManager
plans - non-empty list of plans
Returns:
the list of comments written by the specified user for the given plans.


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