public interface CommentsService
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(javax.jcr.Node document,
String commentor,
String email,
String site,
String comment,
String language)
Adds comment to a document.
|
void |
deleteComment(javax.jcr.Node commentNode)
Deletes comment of a document by a given comment node.
|
List<javax.jcr.Node> |
getComments(javax.jcr.Node document,
String language)
Gets all comments of a specified document node.
|
void |
updateComment(javax.jcr.Node commentNode,
String newComment)
Updates comment for a document.
|
void addComment(javax.jcr.Node document,
String commentor,
String email,
String site,
String comment,
String language)
throws Exception
document - The document node that is commented.commentor - Name of the current user.
If null, the commentor is considered as "anonymous".email - Email of the current user.
This param can be null.site - Site of the current user.
This param can be null.comment - Content of the comment.language - Language of the document that is commented.ExceptionNodevoid updateComment(javax.jcr.Node commentNode,
String newComment)
throws Exception
commentNode - Node of the comment that will be updated.newComment - The new comment that is set for the node.Exceptionvoid deleteComment(javax.jcr.Node commentNode)
throws Exception
commentNode - The given comment node.ExceptionCopyright © 2003-2018 eXo Platform SAS. All Rights Reserved.