ALF-9153 Support listing discussion topics by created date, as needed by the hot webscript, with service tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-22 15:03:45 +00:00
parent a359d3cec9
commit e2c0f84f10
3 changed files with 99 additions and 7 deletions

View File

@@ -18,6 +18,8 @@
*/
package org.alfresco.service.cmr.discussion;
import java.util.Date;
import org.alfresco.model.ForumModel;
import org.alfresco.query.PagingRequest;
import org.alfresco.query.PagingResults;
@@ -176,6 +178,19 @@ public interface DiscussionService {
@NotAuditable
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, String username, PagingRequest paging);
/**
* Retrieves all topics in a site, created in the given date range
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(String siteShortName, Date from, Date to, PagingRequest paging);
/**
* Retrieves all topics attached to the specified Node, created in the
* given date range
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, Date from, Date to, PagingRequest paging);
/**
* Searches for all topics in a site, filtered by username or tag
*/
@@ -210,15 +225,17 @@ public interface DiscussionService {
/**
* 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, New and Mine listing support
// TODO Hot topics support
}