org.alfresco.repo.forum
Class CommentServiceImpl

java.lang.Object
  extended by org.alfresco.repo.forum.CommentServiceImpl
All Implemented Interfaces:
CommentService

public class CommentServiceImpl
extends java.lang.Object
implements CommentService

Since:
4.0

Constructor Summary
CommentServiceImpl()
           
 
Method Summary
 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.
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentServiceImpl

public CommentServiceImpl()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

getDiscussableAncestor

public org.alfresco.service.cmr.repository.NodeRef getDiscussableAncestor(org.alfresco.service.cmr.repository.NodeRef descendantNodeRef)
Description copied from interface: CommentService
Thi method retrieves the ancestor in the repository containment hierarchy having the fm:discussable aspect.

Specified by:
getDiscussableAncestor in interface CommentService
Parameters:
descendantNodeRef - The nodeRef which descends from the f:discussable node.
Returns:
the fm:discussable ancestor if there is one, else null

getShareCommentsTopic

public org.alfresco.service.cmr.repository.NodeRef getShareCommentsTopic(org.alfresco.service.cmr.repository.NodeRef discussableNode)
Description copied from interface: CommentService
This method retrieves the fm:topic NodeRef which holds the Share comments for the specified fm:discussable node.

Specified by:
getShareCommentsTopic in interface CommentService
Parameters:
discussableNode - the node whose Share comments are sought.
Returns:
the fm:topic NodeRef, if one exists, else null.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.