@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)
CommentService
Comment
. If a user is authenticated, the
Comment
is created on behalf of this user.createNew
in interface CommentService
commentable
- Commentable
the comment will belong toComment
public void postSilently(Comment comment)
CommentService
postSilently
in interface CommentService
comment
- Comment
to be postedpublic void postComment(Comment comment, Object request)
CommentService
postComment
in interface CommentService
comment
- Comment
to be postedrequest
- request data to be forwarded to the mail templatepublic void remove(Comment comment)
CommentService
remove
in interface CommentService
comment
- Comment
to be deletedpublic void removeAll(Commentable commentable)
CommentService
removeAll
in interface CommentService
commentable
- Commentable
to delete all comments ofCopyright © 2009–2016. All rights reserved.