public class CommentServiceImpl extends java.lang.Object implements CommentService
| Constructor and Description |
|---|
CommentServiceImpl() |
| 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 |
setActivityService(ActivityService activityService) |
void |
setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry cannedQueryRegistry) |
void |
setContentService(ContentService contentService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSiteService(SiteService siteService) |
void |
updateComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef,
java.lang.String title,
java.lang.String comment)
Updates the comment
|
public void setSiteService(SiteService siteService)
public void setActivityService(ActivityService activityService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(ContentService contentService)
public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry cannedQueryRegistry)
public org.alfresco.service.cmr.repository.NodeRef getDiscussableAncestor(org.alfresco.service.cmr.repository.NodeRef descendantNodeRef)
CommentServicefm:discussable aspect.getDiscussableAncestor in interface CommentServicedescendantNodeRef - The nodeRef which descends from the f:discussable node.public org.alfresco.query.PagingResults listComments(org.alfresco.service.cmr.repository.NodeRef discussableNode,
org.alfresco.query.PagingRequest paging)
CommentServicelistComments in interface CommentServicepublic org.alfresco.service.cmr.repository.NodeRef getShareCommentsTopic(org.alfresco.service.cmr.repository.NodeRef discussableNode)
CommentServicefm:topic NodeRef which holds the Share comments for
the specified fm:discussable node.getShareCommentsTopic in interface CommentServicediscussableNode - the node whose Share comments are sought.public org.alfresco.service.cmr.repository.NodeRef createComment(org.alfresco.service.cmr.repository.NodeRef discussableNode,
java.lang.String title,
java.lang.String comment,
boolean suppressRollups)
CommentServicecreateComment in interface CommentServicediscussableNode - the node in Share which is being commented on .title - - title of the commentcomment - - body of the commentsuppressRollups - - should it suppressRollupspublic void updateComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef,
java.lang.String title,
java.lang.String comment)
CommentServiceupdateComment in interface CommentServicetitle - - title of the commentcomment - - body of the commentpublic void deleteComment(org.alfresco.service.cmr.repository.NodeRef commentNodeRef)
CommentServicedeleteComment in interface CommentServicecommentNodeRef - the node in Share which is being commented on.Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.