Class SearchGuardIndexSearcherWrapper
- java.lang.Object
-
- com.floragunn.searchguard.configuration.SearchGuardIndexSearcherWrapper
-
- All Implemented Interfaces:
org.elasticsearch.core.CheckedFunction<org.apache.lucene.index.DirectoryReader,org.apache.lucene.index.DirectoryReader,IOException>
public class SearchGuardIndexSearcherWrapper extends Object implements org.elasticsearch.core.CheckedFunction<org.apache.lucene.index.DirectoryReader,org.apache.lucene.index.DirectoryReader,IOException>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.elasticsearch.index.Indexindexprotected org.apache.logging.log4j.Loggerlogprotected org.elasticsearch.common.util.concurrent.ThreadContextthreadContext
-
Constructor Summary
Constructors Constructor Description SearchGuardIndexSearcherWrapper(org.elasticsearch.index.IndexService indexService, org.elasticsearch.common.settings.Settings settings, AdminDNs adminDNs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.index.DirectoryReaderapply(org.apache.lucene.index.DirectoryReader reader)protected org.apache.lucene.index.DirectoryReaderdlsFlsWrap(org.apache.lucene.index.DirectoryReader reader, boolean isAdmin)protected booleanisAdminAuthenticatedOrInternalRequest()protected booleanisSearchGuardIndexRequest()
-
-
-
Constructor Detail
-
SearchGuardIndexSearcherWrapper
public SearchGuardIndexSearcherWrapper(org.elasticsearch.index.IndexService indexService, org.elasticsearch.common.settings.Settings settings, AdminDNs adminDNs)
-
-
Method Detail
-
apply
public final org.apache.lucene.index.DirectoryReader apply(org.apache.lucene.index.DirectoryReader reader) throws IOException- Specified by:
applyin interfaceorg.elasticsearch.core.CheckedFunction<org.apache.lucene.index.DirectoryReader,org.apache.lucene.index.DirectoryReader,IOException>- Throws:
IOException
-
dlsFlsWrap
protected org.apache.lucene.index.DirectoryReader dlsFlsWrap(org.apache.lucene.index.DirectoryReader reader, boolean isAdmin) throws IOException- Throws:
IOException
-
isAdminAuthenticatedOrInternalRequest
protected final boolean isAdminAuthenticatedOrInternalRequest()
-
isSearchGuardIndexRequest
protected final boolean isSearchGuardIndexRequest()
-
-