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
FieldsModifier and TypeFieldDescriptionprotected IdSerializationprotected Metadataprotected SearchPropertiesprotected DataManager -
Constructor Summary
Constructors -
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 providedSearchResultand fetch plans.
-
Field Details
-
metadata
-
searchProperties
-
idSerialization
-
secureDataManager
-
-
Constructor Details
-
SearchResultProcessorImpl
public SearchResultProcessorImpl()
-
-
Method Details
-
loadEntityInstances
Description copied from interface:SearchResultProcessorLoads all entity instances based on providedSearchResult. Instances will be loaded using LOCAL fetch plan.- Specified by:
loadEntityInstancesin interfaceSearchResultProcessor- Parameters:
searchResult-SearchResult- Returns:
- collection of entity instances
-
loadEntityInstances
public Collection<Object> loadEntityInstances(SearchResult searchResult, Map<String, FetchPlan> fetchPlans) Description copied from interface:SearchResultProcessorLoads all entity instances based on providedSearchResultand 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:
loadEntityInstancesin interfaceSearchResultProcessor- Parameters:
searchResult-SearchResultfetchPlans- Map: Entity name -FetchPlan- Returns:
- collection of entity instances
-