@Component(value="fts_DatabaseDataLoader")
public class DatabaseDataLoader
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatabaseDataLoader.SearchEntryCallback |
static class |
DatabaseDataLoader.SearchEntryCallbackResult |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
DatabaseDataLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
mergeSearchData(java.util.List<EntityInfo> entitiesFoundByFts,
boolean filterByShowInResults,
DatabaseDataLoader.SearchEntryCallback callback)
Method accepts a list of
EntityInfo objects that contains entities found by full-text search in Lucene index. |
public static final java.lang.String NAME
public void mergeSearchData(java.util.List<EntityInfo> entitiesFoundByFts, boolean filterByShowInResults, DatabaseDataLoader.SearchEntryCallback callback)
EntityInfo objects that contains entities found by full-text search in Lucene index. Methods checks which of
these entities are allowed by row-level security and invokes the callback for each allowed entity.entitiesFoundByFts - a list of entities found by full-text search in Lucene indexfilterByShowInResults - indicates that the "show" attribute from the "fts.xml" config should be taken into account. If the filterByShowInResults is true and the entity should not be shown in FTS results then entities of this type will
be ignored by the method.callback - a callback that will be invoked for each entity that is allowed for the user by row-level security