|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentManager
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 |
Method Detail |
---|
Comment addComment(java.lang.String content, ResultsSummary resultsSummary, com.atlassian.user.User user)
void deleteComment(Comment comment, ResultsSummary resultsSummary)
Comment getCommentById(long commentId)
void saveComment(Comment comment)
comment
- to saveboolean hasPlanResultComments(@NotNull ResultsSummary resultsSummary)
resultsSummary
-
@NotNull java.util.List<Comment> getPlanResultComments(@NotNull ResultsSummary resultsSummary)
resultsSummary
-
@NotNull java.util.List<Comment> getCommentsByUserForPlans(@NotNull java.lang.String userName, @NotNull java.util.List<? extends Plan> plans)
userName
- plans
- non-empty list of plans
java.lang.IllegalArgumentException
- if plans
is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |