public class SearchOptionsImpl extends Object implements SearchOptions
Constructor and Description |
---|
SearchOptionsImpl(int startIndex,
int numberOfResults) |
Modifier and Type | Method and Description |
---|---|
void |
addAndFilter() |
void |
addBetweenFilter(String field,
Serializable from,
Serializable to) |
void |
addDifferentFromFilter(String field,
Serializable value) |
void |
addFilter(String field,
Serializable value) |
void |
addGreaterOrEqualsFilter(String field,
Serializable value) |
void |
addGreaterThanFilter(String field,
Serializable value) |
void |
addLeftParenthesis() |
void |
addLessOrEqualsFilter(String field,
Serializable value) |
void |
addLessThanFilter(String field,
Serializable value) |
void |
addOrFilter() |
void |
addRightParenthesis() |
void |
addSort(String field,
Order order) |
boolean |
equals(Object obj) |
List<SearchFilter> |
getFilters()
Gets the list of
SearchFilter objects defining the restrictive criteria that a result must match to
fulfill the search. |
int |
getMaxResults()
The maximum results to return.
|
String |
getSearchTerm()
Gets the search term (free text that can be search for in a certain amount of properties, depending on what
object is the search applied on)
|
List<Sort> |
getSorts()
Gets the list of sort criteria
|
int |
getStartIndex()
The result start index, that is the first result that matches the search criteria that we want to retrieve.
|
int |
hashCode() |
void |
setFilters(List<SearchFilter> filters) |
void |
setSearchTerm(String value) |
void |
setSorts(List<Sort> sorts) |
public void setFilters(List<SearchFilter> filters)
public List<SearchFilter> getFilters()
SearchOptions
SearchFilter
objects defining the restrictive criteria that a result must match to
fulfill the search.getFilters
in interface SearchOptions
SearchFilter
objectspublic String getSearchTerm()
SearchOptions
getSearchTerm
in interface SearchOptions
public int getStartIndex()
SearchOptions
getStartIndex
in interface SearchOptions
public int getMaxResults()
SearchOptions
getMaxResults
in interface SearchOptions
public List<Sort> getSorts()
SearchOptions
getSorts
in interface SearchOptions
Sort
to order the resultspublic void setSearchTerm(String value)
public void addGreaterThanFilter(String field, Serializable value)
public void addGreaterOrEqualsFilter(String field, Serializable value)
public void addLessThanFilter(String field, Serializable value)
public void addLessOrEqualsFilter(String field, Serializable value)
public void addBetweenFilter(String field, Serializable from, Serializable to)
public void addDifferentFromFilter(String field, Serializable value)
public void addFilter(String field, Serializable value)
public final void addOrFilter()
public final void addAndFilter()
public final void addLeftParenthesis()
public final void addRightParenthesis()
Copyright © 2020 Bonitasoft S.A. All rights reserved.