public interface CommentService
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.NodeRef |
createComment(org.alfresco.service.cmr.repository.NodeRef discussableNode,
java.lang.String title,
java.lang.String comment,
boolean suppressRollups)
Creates a comment for the discussableNode
|
void |
deleteComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef)
Deletes the comment for the discussableNode
|
org.alfresco.service.cmr.repository.NodeRef |
getDiscussableAncestor(org.alfresco.service.cmr.repository.NodeRef descendantNodeRef)
Thi method retrieves the ancestor in the repository containment hierarchy having the
fm:discussable aspect. |
org.alfresco.service.cmr.repository.NodeRef |
getShareCommentsTopic(org.alfresco.service.cmr.repository.NodeRef discussableNode)
This method retrieves the
fm:topic NodeRef which holds the Share comments for
the specified fm:discussable node. |
org.alfresco.query.PagingResults |
listComments(org.alfresco.service.cmr.repository.NodeRef discussableNode,
org.alfresco.query.PagingRequest paging)
Returns a paged list of comments.
|
void |
updateComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef,
java.lang.String title,
java.lang.String comment)
Updates the comment
|
org.alfresco.service.cmr.repository.NodeRef getDiscussableAncestor(org.alfresco.service.cmr.repository.NodeRef descendantNodeRef)
fm:discussable aspect.descendantNodeRef - The nodeRef which descends from the f:discussable node.org.alfresco.error.AlfrescoRuntimeException - if the specified expectedNodeType is not correct.org.alfresco.service.cmr.repository.NodeRef getShareCommentsTopic(org.alfresco.service.cmr.repository.NodeRef discussableNode)
fm:topic NodeRef which holds the Share comments for
the specified fm:discussable node.discussableNode - the node whose Share comments are sought.org.alfresco.service.cmr.repository.NodeRef createComment(org.alfresco.service.cmr.repository.NodeRef discussableNode,
java.lang.String title,
java.lang.String comment,
boolean suppressRollups)
discussableNode - the node in Share which is being commented on .title - - title of the commentcomment - - body of the commentsuppressRollups - - should it suppressRollupsvoid updateComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef,
java.lang.String title,
java.lang.String comment)
nodeRef - the comment node.title - - title of the commentcomment - - body of the commentorg.alfresco.query.PagingResults listComments(org.alfresco.service.cmr.repository.NodeRef discussableNode,
org.alfresco.query.PagingRequest paging)
nodeRef - the node which is being commented on .void deleteComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef)
commentNodeRef - the node in Share which is being commented on.Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.