public interface CommentService extends Service
Modifier and Type | Field and Description |
---|---|
static String |
SORT_PROPERTY_CREATED_AT
Allowable sorting property : Creation Date
|
Modifier and Type | Method and Description |
---|---|
Comment |
addComment(Node node,
String content)
Add a comment to the specified Node (Folder or Document).
|
void |
deleteComment(Node node,
Comment comment)
Remove the specified comment from the repository.
|
List<Comment> |
getComments(Node node)
List the available comments for the specified node.
|
PagingResult<Comment> |
getComments(Node node,
ListingContext listingContext)
List the available comments for the specified node.
|
Comment |
updateComment(Node node,
Comment comment,
String content)
Updates the given comment with the provided content.
|
static final String SORT_PROPERTY_CREATED_AT
List<Comment> getComments(Node node)
node
- : Node object (Folder or Document).AlfrescoServiceException
- : GENERAL_NOT_FOUND
: if node doesn't
exist.AlfrescoServiceException
- : ErrorCodeRegistry.GENERAL_UNKNOWN : If network problems
occur during the process.PagingResult<Comment> getComments(Node node, ListingContext listingContext)
SORT_PROPERTY_CREATED_AT
node
- : Node object (Folder or Document).listingContext
- : define characteristics of the resultAlfrescoServiceException
- : If node is not defined or if network
or internal problems occur during the process.Comment addComment(Node node, String content)
node
- : Node object (Folder or Document).content
- : Comment ContentAlfrescoServiceException
- : If content or node is not defined or
if network or internal problems occur during the process.Comment updateComment(Node node, Comment comment, String content)
comment
- : new content of a comment.AlfrescoServiceException
- : If content or comment is not defined
or if network or internal problems occur during the process.void deleteComment(Node node, Comment comment)
Comment
- : comment object.AlfrescoServiceException
- : If comment is not defined or if
network or internal problems occur during the process.Copyright © 2012-2018 Alfresco Software. All Rights Reserved.