Package org.fcrepo.search.api
Class SearchParameters
- java.lang.Object
-
- org.fcrepo.search.api.SearchParameters
-
public class SearchParameters extends Object
A pojo encapsulating the parameters of a search- Author:
- dbernstein
-
-
Constructor Summary
Constructors Constructor Description SearchParameters(List<Condition.Field> fields, List<Condition> conditions, int maxResults, int offset, Condition.Field orderBy, String order)Constructoor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Condition>getConditions()The conditions limiting the searchList<Condition.Field>getFields()Returns the list of fields to display in the results.intgetMaxResults()The max number of results to returnintgetOffset()The offset (zero-based)StringgetOrder()Returns the order direction (asc or desc) of the results.Condition.FieldgetOrderBy()Returns the field by which to order the results.StringtoString()
-
-
-
Constructor Detail
-
SearchParameters
public SearchParameters(List<Condition.Field> fields, List<Condition> conditions, int maxResults, int offset, Condition.Field orderBy, String order)
Constructoor- Parameters:
fields- The fields to be returned in the resultsconditions- The conditionsmaxResults- The max resultsoffset- The offsetorderBy- The field by which to order the resultsorder- The order: ie "asc" or "desc"
-
-
Method Detail
-
getOffset
public int getOffset()
The offset (zero-based)- Returns:
-
getMaxResults
public int getMaxResults()
The max number of results to return- Returns:
-
getConditions
public List<Condition> getConditions()
The conditions limiting the search- Returns:
-
getFields
public List<Condition.Field> getFields()
Returns the list of fields to display in the results.- Returns:
-
getOrderBy
public Condition.Field getOrderBy()
Returns the field by which to order the results.- Returns:
-
getOrder
public String getOrder()
Returns the order direction (asc or desc) of the results.- Returns:
-
-