aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest/archiva-rest-api
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-12-18 17:51:54 +0000
committerOlivier Lamy <olamy@apache.org>2012-12-18 17:51:54 +0000
commitd15b737723efeae4a7e0af08bcdd9e7f9fff8bd1 (patch)
tree297f68b4ebdeda6e45ac21d65ee366f42e34c5fd /archiva-modules/archiva-web/archiva-rest/archiva-rest-api
parent481baa6ffb4f5e39c27f8c9eab43b35f2abc769b (diff)
downloadarchiva-d15b737723efeae4a7e0af08bcdd9e7f9fff8bd1.tar.gz
archiva-d15b737723efeae4a7e0af08bcdd9e7f9fff8bd1.zip
[MRM-1720] make pageSize and selectedPage configurable tru the REST request.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1423550 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/SearchRequest.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/SearchRequest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/SearchRequest.java
index da2c1ef22..209e1ccd2 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/SearchRequest.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/SearchRequest.java
@@ -117,6 +117,15 @@ public class SearchRequest
*/
private boolean includePomArtifacts = false;
+ /**
+ * @since 1.4-M4
+ */
+ private int pageSize = 30;
+
+ /**
+ * @since 1.4-M4
+ */
+ private int selectedPage = 0;
public SearchRequest()
@@ -286,6 +295,26 @@ public class SearchRequest
this.bundleRequireBundle = bundleRequireBundle;
}
+ public int getPageSize()
+ {
+ return pageSize;
+ }
+
+ public void setPageSize( int pageSize )
+ {
+ this.pageSize = pageSize;
+ }
+
+ public int getSelectedPage()
+ {
+ return selectedPage;
+ }
+
+ public void setSelectedPage( int selectedPage )
+ {
+ this.selectedPage = selectedPage;
+ }
+
@Override
public String toString()
{
@@ -306,6 +335,8 @@ public class SearchRequest
sb.append( ", bundleRequireBundle='" ).append( bundleRequireBundle ).append( '\'' );
sb.append( ", classifier='" ).append( classifier ).append( '\'' );
sb.append( ", includePomArtifacts=" ).append( includePomArtifacts );
+ sb.append( ", pageSize=" ).append( pageSize );
+ sb.append( ", selectedPage=" ).append( selectedPage );
sb.append( '}' );
return sb.toString();
}