public class SearchOptions extends ReadOptions
ReadOptions
containing options for entity search operation. Search options include Locale, Requested Attributes, Sort attributes, page size and page position.ReadOptions.SearchScope
ALL_LOCALES
Constructor and Description |
---|
SearchOptions() |
Modifier and Type | Method and Description |
---|---|
SearchOptions |
clone()
Clones this object
|
int |
getPageSize()
Gets the page size
|
int |
getRequestedPage()
Gets the page position
|
int |
getSizeLimit()
Gets the size limit
|
java.lang.String[] |
getSortAttrs()
Gets the array of sort attributes
|
void |
setPageSize(int pageSize)
Sets the pagesize to be used while searching the entities in the repository.
|
void |
setRequestedPage(int requestedPage)
Sets the page position, the entities in the page to be returned
|
void |
setSizeLimit(int sizeLimit)
Sets the size limit, maximum number of entities to be returned by the search method
|
void |
setSortAttrs(java.lang.String[] sortAttrs)
Sets the array of attributes on which the search results to be sorted.
|
getLocale, getRequestedAttrs, getSearchBase, getSearchScope, getTimeLimit, isSearchBaseAbsolute, setLocale, setLocale, setRequestedAttrs, setSearchBase, setSearchBase, setSearchScope, setTimeLimit
getAuthUser, getParameter, getParameters, setAuthUser, setAuthUser, setParameter
public void setSortAttrs(java.lang.String[] sortAttrs)
sortAttrs
- array of sort attributespublic java.lang.String[] getSortAttrs()
public void setPageSize(int pageSize)
pageSize
- page sizepublic int getPageSize()
public void setRequestedPage(int requestedPage)
requestedPage
- page positionpublic int getRequestedPage()
public void setSizeLimit(int sizeLimit)
sizeLimit
- maximum number of entities to be returnedpublic int getSizeLimit()
public SearchOptions clone()
clone
in class ReadOptions