ALF-2166 Update the new Discussions Java Service to allow control of if newer or older topics come first in listings (previously was always older)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-09-02 15:29:36 +00:00
parent a1ce9d37f0
commit e74b786fd2
3 changed files with 149 additions and 89 deletions

View File

@@ -155,54 +155,60 @@ public interface DiscussionService {
/**
* Retrieves all topics in a site
* Retrieves all topics in a site, sorted by either oldest
* or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(String siteShortName, PagingRequest paging);
PagingResults<TopicInfo> listTopics(String siteShortName, boolean sortAscending, PagingRequest paging);
/**
* Retrieves all topics attached to the specified Node
* Retrieves all topics attached to the specified Node, sorted by
* either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, PagingRequest paging);
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, boolean sortAscending, PagingRequest paging);
/**
* Retrieves all topics in a site, filtered by username
* Retrieves all topics in a site, filtered by username, sorted by
* either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(String siteShortName, String username, PagingRequest paging);
PagingResults<TopicInfo> listTopics(String siteShortName, String username, boolean sortAscending, PagingRequest paging);
/**
* Retrieves all topics attached to the specified Node, filtered by username
* Retrieves all topics attached to the specified Node, filtered by username,
* sorted by either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, String username, PagingRequest paging);
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, String username, boolean sortAscending, PagingRequest paging);
/**
* Retrieves all topics in a site, created in the given date range
* Retrieves all topics in a site, created in the given date range, sorted by
* either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(String siteShortName, Date from, Date to, PagingRequest paging);
PagingResults<TopicInfo> listTopics(String siteShortName, Date from, Date to, boolean sortAscending, PagingRequest paging);
/**
* Retrieves all topics attached to the specified Node, created in the
* given date range
* given date range, sorted by either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, Date from, Date to, PagingRequest paging);
PagingResults<TopicInfo> listTopics(NodeRef nodeRef, Date from, Date to, boolean sortAscending, PagingRequest paging);
/**
* Searches for all topics in a site, filtered by username or tag
* Searches for all topics in a site, filtered by username or tag, sorted by
* either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> findTopics(String siteShortName, String username, String tag, PagingRequest paging);
PagingResults<TopicInfo> findTopics(String siteShortName, String username, String tag, boolean sortAscending, PagingRequest paging);
/**
* Searches for all topics attached to the specified Node, filtered
* by username or tag
* by username or tag, sorted by either oldest or newest topics first.
*/
@NotAuditable
PagingResults<TopicInfo> findTopics(NodeRef nodeRef, String username, String tag, PagingRequest paging);
PagingResults<TopicInfo> findTopics(NodeRef nodeRef, String username, String tag, boolean sortAscending, PagingRequest paging);
/**