Package org.fcrepo.search.api
Class SearchParameters
java.lang.Object
org.fcrepo.search.api.SearchParameters
A pojo encapsulating the parameters of a search
- Author:
- dbernstein
-
Constructor Summary
ConstructorsConstructorDescriptionSearchParameters(List<Condition.Field> fields, List<Condition> conditions, int maxResults, int offset, Condition.Field orderBy, String order, boolean includeTotalResultCount) Constructoor -
Method Summary
Modifier and TypeMethodDescriptionThe conditions limiting the searchReturns the list of fields to display in the results.intThe max number of results to returnintThe offset (zero-based)getOrder()Returns the order direction (asc or desc) of the results.Returns the field by which to order the results.booleanReturns flag indicating whether or not to include the total result count in the query results.toString()
-
Constructor Details
-
SearchParameters
public SearchParameters(List<Condition.Field> fields, List<Condition> conditions, int maxResults, int offset, Condition.Field orderBy, String order, boolean includeTotalResultCount) 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"includeTotalResultCount- A flag indicating whether or not to return the total result count.
-
-
Method Details
-
getOffset
The offset (zero-based)- Returns:
-
getMaxResults
The max number of results to return- Returns:
-
getConditions
The conditions limiting the search- Returns:
-
getFields
Returns the list of fields to display in the results.- Returns:
-
getOrderBy
Returns the field by which to order the results.- Returns:
-
getOrder
Returns the order direction (asc or desc) of the results.- Returns:
-
isIncludeTotalResultCount
Returns flag indicating whether or not to include the total result count in the query results.- Returns:
-
toString
-