Interface SearchService
- All Known Implementing Classes:
SearchServiceImpl
public interface SearchService
The search service is used from the client through DWR.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptioncreateSearchQuery
(SearchService.SearchParameters searchParameters, FulltextSearchBuilder.SearchScope searchScope) generates a query from parameters that can be used to start a searchgenerateSearchQueryString
(SearchService.SearchParameters searchParameters) @Nullable Row
loadRow
(String key, String entityModel, boolean skipDefaultDisplay, String formName, List<String> visibleColumns) relationSearch
(SearchService.SearchParameters relationSearchParameters) This is used for the relations grid where all objects in relation to another record are shown.relationSearchForKeys
(SearchService.SearchParameters relationSearchParameters) Returns the primary keys of all that match.search
(SearchService.SearchParameters searchParameters) Finds records for showing them in a data grid.searchForKeys
(SearchService.SearchParameters searchParameters) Returns the primary keys of all that match.searchForRemoteField
(SearchService.SearchParameters searchParameters)
-
Method Details
-
search
DetailedGridResultData search(SearchService.SearchParameters searchParameters) throws PersistException, RpcExecutionException Finds records for showing them in a data grid. This is used for search forms, search filters, and combinations of both. -
searchForRemoteField
DetailedGridResultData searchForRemoteField(SearchService.SearchParameters searchParameters) throws PersistException, RpcExecutionException -
getDefaultSearchFilters
- Throws:
PersistException
-
searchForKeys
PrimaryKey[] searchForKeys(SearchService.SearchParameters searchParameters) throws PersistException, RpcExecutionException Returns the primary keys of all that match. No order, no offset/limit. -
relationSearch
DetailedGridResultData relationSearch(SearchService.SearchParameters relationSearchParameters) throws PersistException, RpcExecutionException This is used for the relations grid where all objects in relation to another record are shown.Example: all addresses for a person.
-
relationSearchForKeys
PrimaryKey[] relationSearchForKeys(SearchService.SearchParameters relationSearchParameters) throws PersistException, RpcExecutionException Returns the primary keys of all that match. No order, no offset/limit. -
generateSearchQueryString
String generateSearchQueryString(SearchService.SearchParameters searchParameters) throws PersistException, RpcExecutionException -
loadRow
Row loadRow(Entity entity, boolean skipDefaultDisplay, Iterable<Column> visibleColumns) throws RpcExecutionException, PersistException -
loadRow
@Nullable @Nullable Row loadRow(String key, String entityModel, boolean skipDefaultDisplay, String formName, List<String> visibleColumns) throws RpcExecutionException, PersistException -
createSearchQuery
Query createSearchQuery(SearchService.SearchParameters searchParameters, FulltextSearchBuilder.SearchScope searchScope) generates a query from parameters that can be used to start a search- Parameters:
searchParameters
- the parameters to generate the query fromsearchScope
- the scope to generate the query for- Returns:
- the finished query
-