public interface CommentService
| Modifier and Type | Field and Description |
|---|---|
static String |
CAN_DELETE |
static String |
CAN_EDIT |
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
createComment(NodeRef discussableNode,
String title,
String comment,
boolean suppressRollups)
Creates a comment for the discussableNode
|
void |
deleteComment(NodeRef commentNodeRef)
Deletes the comment for the discussableNode
|
Map<String,Boolean> |
getCommentPermissions(NodeRef discussableNode,
NodeRef commentNodeRef)
canEdit / canDelete
|
NodeRef |
getDiscussableAncestor(NodeRef descendantNodeRef)
Thi method retrieves the ancestor in the repository containment hierarchy having the
fm:discussable aspect. |
NodeRef |
getShareCommentsTopic(NodeRef discussableNode)
This method retrieves the
fm:topic NodeRef which holds the Share comments for
the specified fm:discussable node. |
PagingResults<NodeRef> |
listComments(NodeRef discussableNode,
PagingRequest paging)
Returns a paged list of comments.
|
void |
updateComment(NodeRef commentNodeRef,
String title,
String comment)
Updates the comment
|
static final String CAN_EDIT
static final String CAN_DELETE
NodeRef getDiscussableAncestor(NodeRef descendantNodeRef)
fm:discussable aspect.descendantNodeRef - The nodeRef which descends from the f:discussable node.AlfrescoRuntimeException - if the specified expectedNodeType is not correct.NodeRef getShareCommentsTopic(NodeRef discussableNode)
fm:topic NodeRef which holds the Share comments for
the specified fm:discussable node.discussableNode - the node whose Share comments are sought.NodeRef createComment(NodeRef discussableNode, String title, 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(NodeRef commentNodeRef, String title, String comment)
commentNodeRef - the comment node.title - - title of the commentcomment - - body of the commentPagingResults<NodeRef> listComments(NodeRef discussableNode, PagingRequest paging)
discussableNode - the node which is being commented on .paging - paging.void deleteComment(NodeRef commentNodeRef)
commentNodeRef - the node in Share which is being commented on.Copyright © 2005–2021 Alfresco Software. All rights reserved.