|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The comment service implementation which will be called by the view. This can be any view including RUI and/or HTML web clients.
| Method Summary | |
void |
deleteComment(java.lang.Integer commentId)
delete a comment. |
int |
getChildCommentCount(Comment comment)
|
java.util.List |
getChildComments(Comment comment)
|
Comment |
getComment(java.lang.Integer id)
gets a comment by id. |
Comment |
getCommentBySubject(java.lang.Integer offerId,
java.lang.String subject)
get a comment. |
int |
getCommentCount(Item offer)
|
java.util.List |
getComments(java.lang.Integer offerId,
boolean rootOnly)
Get all comments related to the offer. |
java.util.List |
getUserComments(User user)
|
void |
storeComment(Comment comment)
|
| Method Detail |
public void storeComment(Comment comment)
comment - The comment to storepublic void deleteComment(java.lang.Integer commentId)
commentId - the comment to delete
public Comment getCommentBySubject(java.lang.Integer offerId,
java.lang.String subject)
offerId - The offer the comment is linked tosubject - The subject of the comment
public java.util.List getComments(java.lang.Integer offerId,
boolean rootOnly)
rootOnly - if true, return only the root comment.offerId - the id of the offer to get the comment from.
public Comment getComment(java.lang.Integer id)
id - the id of the comment
public java.util.List getChildComments(Comment comment)
comment - Comment
public java.util.List getUserComments(User user)
user - User
public int getChildCommentCount(Comment comment)
comment - Comment
public int getCommentCount(Item offer)
offer - Offer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||