public interface CommentService
Modifier and Type | Field and Description |
---|---|
static String |
CAN_DELETE |
static String |
CAN_EDIT |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createComment(org.alfresco.service.cmr.repository.NodeRef discussableNode,
String title,
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
|
Map<String,Boolean> |
getCommentPermissions(org.alfresco.service.cmr.repository.NodeRef discussableNode,
org.alfresco.service.cmr.repository.NodeRef commentNodeRef)
canEdit / canDelete
|
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<org.alfresco.service.cmr.repository.NodeRef> |
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,
String title,
String comment)
Updates the comment
|
static final String CAN_EDIT
static final String CAN_DELETE
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, 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(org.alfresco.service.cmr.repository.NodeRef commentNodeRef, String title, String comment)
commentNodeRef
- the comment node.title
- - title of the commentcomment
- - body of the commentorg.alfresco.query.PagingResults<org.alfresco.service.cmr.repository.NodeRef> listComments(org.alfresco.service.cmr.repository.NodeRef discussableNode, org.alfresco.query.PagingRequest paging)
discussableNode
- the node which is being commented on .paging
- paging.void deleteComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef)
commentNodeRef
- the node in Share which is being commented on.Copyright © 2005–2017 Alfresco Software. All rights reserved.