org.alfresco.repo.forum
Interface CommentService

All Known Implementing Classes:
CommentServiceImpl

public interface CommentService

This is a starting point for a future service for handling Share comments.

This class may change in the future as requirements become clearer.

Since:
4.0

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.
 

Method Detail

getDiscussableAncestor

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.

Parameters:
descendantNodeRef - The nodeRef which descends from the f:discussable node.
Returns:
the fm:discussable ancestor if there is one, else null
Throws:
org.alfresco.error.AlfrescoRuntimeException - if the specified expectedNodeType is not correct.

getShareCommentsTopic

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.

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.