Package io.jmix.search.searching.impl
Class SearchResultProcessorImpl
java.lang.Object
io.jmix.search.searching.impl.SearchResultProcessorImpl
- All Implemented Interfaces:
SearchResultProcessor
@Component("search_SearchResultProcessor")
public class SearchResultProcessorImpl
extends Object
implements SearchResultProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected IdSerialization
protected Metadata
protected SearchProperties
protected DataManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadEntityInstances
(SearchResult searchResult) Loads all entity instances based on providedSearchResult
.loadEntityInstances
(SearchResult searchResult, Map<String, FetchPlan> fetchPlans) Loads all entity instances based on providedSearchResult
and fetch plans.
-
Field Details
-
metadata
-
searchProperties
-
idSerialization
-
secureDataManager
-
-
Constructor Details
-
SearchResultProcessorImpl
public SearchResultProcessorImpl()
-
-
Method Details
-
loadEntityInstances
Description copied from interface:SearchResultProcessor
Loads all entity instances based on providedSearchResult
. Instances will be loaded using LOCAL fetch plan.- Specified by:
loadEntityInstances
in interfaceSearchResultProcessor
- Parameters:
searchResult
-SearchResult
- Returns:
- collection of entity instances
-
loadEntityInstances
public Collection<Object> loadEntityInstances(SearchResult searchResult, Map<String, FetchPlan> fetchPlans) Description copied from interface:SearchResultProcessor
Loads all entity instances based on providedSearchResult
and fetch plans. Fetch plans can be provided for any entity. Instances of entities that don't have provided fetch plans will be loaded using BASE fetch plan- Specified by:
loadEntityInstances
in interfaceSearchResultProcessor
- Parameters:
searchResult
-SearchResult
fetchPlans
- Map: Entity name -FetchPlan
- Returns:
- collection of entity instances
-