Hi Jonathan,

Added "descending" parameter to the Registry.getLogs(...) method. When it's set to true, activities are returned in descending order of the time.
If it is false, activities are returned in ascending order.

Thanks,
Chathura

Jonathan Marsh wrote:

Currently getLogs returns logs in chronological order, which makes perfect sense when enumerating the history.

However, I’m also using it for “recent” activity queries, in which I want reverse chronological order. Since histories will get long, and probably need paging (currently I have a 5-item pseudo-paging system), it’s impractical to read the whole list to get the few most recent items.

So would it be poosible to add an “order” parameter to determine whether the log entries are returned in newest-first or oldest-first order?

*Jonathan Marsh* - http://www.wso2.com - http://auburnmarshes.spaces.live.com

------------------------------------------------------------------------

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev


_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to