|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.comment.CommentManagerImpl
public class CommentManagerImpl
Constructor Summary | |
---|---|
CommentManagerImpl()
|
Method Summary | |
---|---|
Comment |
addComment(java.lang.String content,
ResultsSummary resultsSummary,
com.atlassian.user.User user)
|
void |
deleteComment(Comment comment,
ResultsSummary resultsSummary)
|
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> |
getPlanResultComments(ResultsSummary resultsSummary)
Returns the list of comments attached to a plan and its subplans sorted by date (newest first). |
boolean |
hasPlanResultComments(ResultsSummary resultsSummary)
Checks if any comments are attached to a plan results summary or any of its subplans' result summaries. |
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 |
---|
public CommentManagerImpl()
Method Detail |
---|
public Comment addComment(java.lang.String content, ResultsSummary resultsSummary, com.atlassian.user.User user)
addComment
in interface CommentManager
public void deleteComment(@NotNull Comment comment, @NotNull ResultsSummary resultsSummary)
deleteComment
in interface CommentManager
public Comment getCommentById(long commentId)
getCommentById
in interface CommentManager
public boolean hasPlanResultComments(@NotNull ResultsSummary resultsSummary)
CommentManager
hasPlanResultComments
in interface CommentManager
@NotNull public java.util.List<Comment> getPlanResultComments(@NotNull ResultsSummary resultsSummary)
CommentManager
getPlanResultComments
in interface CommentManager
public void saveComment(Comment comment)
CommentManager
saveComment
in interface CommentManager
comment
- to savepublic void setCommentDao(CommentDao commentDao)
@NotNull public java.util.List<Comment> getCommentsByUserForPlans(java.lang.String userName, java.util.List<? extends Plan> plans)
CommentManager
getCommentsByUserForPlans
in interface CommentManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |