public class LucenePermissionChecker extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LucenePermissionChecker.PermissionChecker |
Constructor and Description |
---|
LucenePermissionChecker(org.apache.lucene.index.IndexReader reader,
LucenePermissionChecker.PermissionChecker permissionChecker) |
Modifier and Type | Method and Description |
---|---|
Iterable<org.apache.lucene.search.ScoreDoc> |
getPermitted(org.apache.lucene.search.TopDocs hits) |
Stream<org.apache.lucene.search.ScoreDoc> |
getPermittedAsStream(org.apache.lucene.search.TopDocs hits) |
boolean |
hasDocPermission(int docId) |
boolean |
hasPermission(org.apache.lucene.search.ScoreDoc hit) |
BiPredicate<Integer,Integer> |
predicate() |
public LucenePermissionChecker(org.apache.lucene.index.IndexReader reader, LucenePermissionChecker.PermissionChecker permissionChecker)
public boolean hasPermission(org.apache.lucene.search.ScoreDoc hit)
public boolean hasDocPermission(int docId)
public Iterable<org.apache.lucene.search.ScoreDoc> getPermitted(org.apache.lucene.search.TopDocs hits)
public Stream<org.apache.lucene.search.ScoreDoc> getPermittedAsStream(org.apache.lucene.search.TopDocs hits)
public BiPredicate<Integer,Integer> predicate()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.