public class PrivilegesInterceptor extends Object
Modifier and Type | Field and Description |
---|---|
protected org.elasticsearch.client.Client |
client |
protected org.elasticsearch.cluster.service.ClusterService |
clusterService |
protected org.elasticsearch.cluster.metadata.IndexNameExpressionResolver |
resolver |
protected org.elasticsearch.threadpool.ThreadPool |
threadPool |
Constructor and Description |
---|
PrivilegesInterceptor(org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver,
org.elasticsearch.cluster.service.ClusterService clusterService,
org.elasticsearch.client.Client client,
org.elasticsearch.threadpool.ThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.common.util.concurrent.ThreadContext |
getThreadContext() |
boolean |
replaceAllowedIndices(org.elasticsearch.action.ActionRequest request,
String action,
User user,
org.elasticsearch.common.settings.Settings config,
Map<String,Set<PrivilegesEvaluator.IndexType>> leftOvers) |
Boolean |
replaceKibanaIndex(org.elasticsearch.action.ActionRequest request,
String action,
User user,
org.elasticsearch.common.settings.Settings config,
Set<String> requestedResolvedIndices,
Map<String,Boolean> tenants) |
protected final org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver
protected final org.elasticsearch.cluster.service.ClusterService clusterService
protected final org.elasticsearch.client.Client client
protected final org.elasticsearch.threadpool.ThreadPool threadPool
public PrivilegesInterceptor(org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.client.Client client, org.elasticsearch.threadpool.ThreadPool threadPool)
public Boolean replaceKibanaIndex(org.elasticsearch.action.ActionRequest request, String action, User user, org.elasticsearch.common.settings.Settings config, Set<String> requestedResolvedIndices, Map<String,Boolean> tenants)
public boolean replaceAllowedIndices(org.elasticsearch.action.ActionRequest request, String action, User user, org.elasticsearch.common.settings.Settings config, Map<String,Set<PrivilegesEvaluator.IndexType>> leftOvers)
protected org.elasticsearch.common.util.concurrent.ThreadContext getThreadContext()
Copyright © 2015–2019. All rights reserved.