From: <ta...@go...> - 2011-10-19 13:30:32
|
Revision: 14178 Author: al...@my... Date: Wed Oct 19 06:29:46 2011 Log: Changed to take account of pages as per T2-2000 http://code.google.com/p/taverna/source/detail?r=14178 Modified: /taverna/ui/net.sf.taverna.t2.ui-exts/branches/maintenance/perspective-myexperiment/src/main/java/net/sf/taverna/t2/ui/perspectives/myexperiment/model/MyExperimentClient.java ======================================= --- /taverna/ui/net.sf.taverna.t2.ui-exts/branches/maintenance/perspective-myexperiment/src/main/java/net/sf/taverna/t2/ui/perspectives/myexperiment/model/MyExperimentClient.java Tue Jun 21 06:20:40 2011 +++ /taverna/ui/net.sf.taverna.t2.ui-exts/branches/maintenance/perspective-myexperiment/src/main/java/net/sf/taverna/t2/ui/perspectives/myexperiment/model/MyExperimentClient.java Wed Oct 19 06:29:46 2011 @@ -854,7 +854,7 @@ * was specified. */ public Document getUserContributions(User user, int iResourceType, - int iRequestType) { + int iRequestType, int page) { Document doc = null; String strURL = BASE_URL; String strElements = "&elements="; @@ -875,6 +875,10 @@ strElements += Workflow.getRequiredAPIElements(iRequestType); break; } + + if (page != 0) { + strElements += "&num=100&page=" + page; + } // create final query URL and retrieve data strURL += MyExperimentClient.urlEncodeQuery(user.getResource()) |