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()
SearchOptionsSearchFilter objects defining the restrictive criteria that a result must match to fulfill the search.getFilters in interface SearchOptionsSearchFilter objectspublic String getSearchTerm()
SearchOptionsgetSearchTerm in interface SearchOptionspublic int getStartIndex()
SearchOptionsgetStartIndex in interface SearchOptionspublic int getMaxResults()
SearchOptionsgetMaxResults in interface SearchOptionspublic List<Sort> getSorts()
SearchOptionsgetSorts in interface SearchOptionsSort 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 © 2018 Bonitasoft S.A.. All rights reserved.