diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-18 17:51:29 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-18 17:51:29 +0000 |
commit | 481baa6ffb4f5e39c27f8c9eab43b35f2abc769b (patch) | |
tree | 8dc667991e73528bccb435e51a39588643e60e0a | |
parent | f1c4595c8d713edb5e5ca22666ea7f35d3f6006c (diff) | |
download | archiva-481baa6ffb4f5e39c27f8c9eab43b35f2abc769b.tar.gz archiva-481baa6ffb4f5e39c27f8c9eab43b35f2abc769b.zip |
add a constructor and improve javadoc
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1423549 13f79535-47bb-0310-9956-ffa450edef68
2 files changed, 17 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultLimits.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultLimits.java index 1697bb067..967ecc5ae 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultLimits.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultLimits.java @@ -21,8 +21,7 @@ package org.apache.archiva.indexer.search; /** * SearchResultLimits - used to provide the search some limits on how the results are returned. - * This can provide paging for the - * + * This can provide paging for the result */ public class SearchResultLimits { @@ -36,11 +35,25 @@ public class SearchResultLimits private int selectedPage = 0; + /** + * @param selectedPage page selected use -1 for all pages + */ public SearchResultLimits( int selectedPage ) { this.selectedPage = selectedPage; } + /** + * @param pageSize number of groupId:artifact per page + * @param selectedPage page selected use -1 for all pages + * @since 1.4-M4 + */ + public SearchResultLimits( int pageSize, int selectedPage ) + { + this.pageSize = pageSize; + this.selectedPage = selectedPage; + } + public int getPageSize() { return pageSize; 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 898ad6c2e..da2c1ef22 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,8 @@ public class SearchRequest */ private boolean includePomArtifacts = false; + + public SearchRequest() { // no op |