ALF-9153 Discussions service CQ support for finding "hot" topics (those with recent replies)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-24 13:45:59 +00:00
parent 7386ef6f44
commit b94a0af2e9
10 changed files with 653 additions and 30 deletions

View File

@@ -205,6 +205,23 @@ public interface DiscussionService {
PagingResults<TopicInfo> findTopics(NodeRef nodeRef, String username, String tag, PagingRequest paging);
/**
* Finds topics which have had replies since the specified date, and
* returns them along with the count of replies since then.
* Primary posts are not included in this.
*/
@NotAuditable
PagingResults<Pair<TopicInfo,Integer>> listHotTopics(String siteShortName, Date since, PagingRequest paging);
/**
* Finds topics which have had replies since the specified date, and
* returns them along with the count of replies since then.
* Primary posts are not included in this.
*/
@NotAuditable
PagingResults<Pair<TopicInfo,Integer>> listHotTopics(NodeRef nodeRef, Date since, PagingRequest paging);
/**
* Retrieves all posts in a topic, ordered by creation date
*/
@@ -222,20 +239,4 @@ public interface DiscussionService {
*/
@NotAuditable
PostWithReplies listPostReplies(PostInfo primaryPost, int levels);
/**
* Retrieves all posts in a site, across all topics
* TODO Is this needed?
*/
@NotAuditable
PagingResults<PostInfo> listPosts(String siteShortName, PagingRequest paging);
/**
* Retrieves all posts attached to the specified Node, across all topics
* TODO Is this needed?
*/
@NotAuditable
PagingResults<PostInfo> listPosts(NodeRef nodeRef, PagingRequest paging);
// TODO Hot topics support
}