Interface SearchProvider
- All Known Implementing Classes:
AbstractSearchProvider,CmsSearchProvider,GenericQuerySearchProvider,ProductPerspectiveQueryProvider
public interface SearchProvider
The interface SearchProvider. Base interface to implement for simple searches. Only parameter to set is required root
type of search result. The interface also declares one method that takes
Query as an argument and returns
search result.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the default root type - search result will contain items of this type.Performs search for the givenQueryobject.voidsetDefaultRootType(SearchType defaultRootType) Sets the default root type.
-
Field Details
-
SELECTED_OBJECT_TEMPLATE
- See Also:
-
-
Method Details
-
getDefaultRootType
SearchType getDefaultRootType()Gets the default root type - search result will contain items of this type.- Returns:
- the default root type of the provider
-
setDefaultRootType
Sets the default root type. We will expect items of this type in the search result.- Parameters:
defaultRootType- the new default root type
-
search
Performs search for the givenQueryobject.- Parameters:
query- the query object. This object contains all required information to perform search in the system.- Returns:
- the extended search result which is a simple POJO that contains result set and some additional information.
-