mirror of
https://github.com/apache/archiva.git
synced 2025-03-08 01:43:06 +00:00
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:
parent
f1c4595c8d
commit
481baa6ffb
@ -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;
|
||||
|
@ -117,6 +117,8 @@ public class SearchRequest
|
||||
*/
|
||||
private boolean includePomArtifacts = false;
|
||||
|
||||
|
||||
|
||||
public SearchRequest()
|
||||
{
|
||||
// no op
|
||||
|
Loading…
x
Reference in New Issue
Block a user