@Service @Transactional public class CommentServiceImpl extends Object implements CommentService
CommentService.| Constructor and Description | 
|---|
CommentServiceImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
Comment | 
createNew(Commentable commentable)
Creates a new, empty  
Comment. | 
void | 
postComment(Comment comment,
           Object request)
Posts a comment. 
 | 
void | 
postSilently(Comment comment)
Posts a comment. 
 | 
void | 
remove(Comment comment)
Removes a comment. 
 | 
void | 
removeAll(Commentable commentable)
Removes all comments posted to the given thread. 
 | 
public CommentServiceImpl()
public Comment createNew(Commentable commentable)
CommentServiceComment. If a user is authenticated, the
 Comment is created on behalf of this user.createNew in interface CommentServicecommentable - Commentable the comment will belong toCommentpublic void postSilently(Comment comment)
CommentServicepostSilently in interface CommentServicecomment - Comment to be postedpublic void postComment(Comment comment, Object request)
CommentServicepostComment in interface CommentServicecomment - Comment to be postedrequest - request data to be forwarded to the mail templatepublic void remove(Comment comment)
CommentServiceremove in interface CommentServicecomment - Comment to be deletedpublic void removeAll(Commentable commentable)
CommentServiceremoveAll in interface CommentServicecommentable - Commentable to delete all comments ofCopyright © 2009–2016. All rights reserved.