public class DefaultPostQueryFilter extends Object implements PostQueryFilter
PostQueryFilter| Constructor and Description |
|---|
DefaultPostQueryFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
filterItems(SessionContext ctx,
LuceneIndex idx,
Item[] items)
Check whether the given items are visible.
|
protected Collection<IndexConfiguration> |
findRestrictedIndexConfigurations(FlexibleSearch flexibleSearch,
SessionContext ctx,
LuceneIndex index)
Checks the specified index whether or not there are active search restrictions for it within the current session
context.
|
protected Map<IndexConfiguration,BitSet> |
groupItemsByIndexedType(SessionContext ctx,
Collection<IndexConfiguration> indexedTypes,
Item[] items)
Groups all given items by their types resp.
|
protected boolean |
isTypeVisible(SessionContext ctx,
ComposedType type)
Additional hook for filtering invisible indexed types.
|
protected void |
processInvisibleTypes(SessionContext ctx,
LuceneIndex idx,
Item[] items)
Clears all items which belong to invisible types.
|
public void filterItems(SessionContext ctx, LuceneIndex idx, Item[] items)
PostQueryFilterJaloSession.filterItems in interface PostQueryFilteridx - the index which the result items belong toitems - all items found be a searchprotected Collection<IndexConfiguration> findRestrictedIndexConfigurations(FlexibleSearch flexibleSearch, SessionContext ctx, LuceneIndex index)
flexibleSearch - the flexible search managerctx - the current session contextindex - index to checkprotected Map<IndexConfiguration,BitSet> groupItemsByIndexedType(SessionContext ctx, Collection<IndexConfiguration> indexedTypes, Item[] items)
Returns a map { ComposedType -> [ item PK string + ] }.
indexedTypes - all indexed typesitems - all possible itemsprotected void processInvisibleTypes(SessionContext ctx, LuceneIndex idx, Item[] items)
ctx - the enclosing session contextidx - the lucene search indexitems - the items to filterisTypeVisible(SessionContext, ComposedType)protected boolean isTypeVisible(SessionContext ctx, ComposedType type)
type - Copyright © 2017 SAP SE. All Rights Reserved.