add a constructor and improve javadoc

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1423549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-18 17:51:29 +00:00
parent f1c4595c8d
commit 481baa6ffb
2 changed files with 17 additions and 2 deletions

View File

@ -21,8 +21,7 @@
/**
* 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;

View File

@ -117,6 +117,8 @@ public class SearchRequest
*/
private boolean includePomArtifacts = false;
public SearchRequest()
{
// no op