ALF-9153 Start on the lucene-free Discussions Webscripts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29729 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-12 17:35:19 +00:00
parent 3317a6a263
commit 45901f3ce3
3 changed files with 92 additions and 24 deletions

View File

@@ -23,6 +23,7 @@ import org.alfresco.query.PagingRequest;
import org.alfresco.query.PagingResults;
import org.alfresco.service.NotAuditable;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.util.Pair;
/**
* The Discussions service.
@@ -97,6 +98,18 @@ public interface DiscussionService {
@NotAuditable
void deleteTopic(TopicInfo topic);
/**
* For a given NodeRef corresponding to either a
* {@link TopicInfo} or a {@link PostInfo}, returns
* the objects wrapping the Node.
*
* For a Topic, the 2nd half of the pair is null.
* For a Post, both halves of the pair are set.
* For anything else, the response is null.
*/
@NotAuditable
Pair<TopicInfo,PostInfo> getForNodeRef(NodeRef nodeRef);
/**
* Retrieves an existing {@link PostInfo} from the repository
*/