Class PrivilegesInterceptorImpl


  • public class PrivilegesInterceptorImpl
    extends com.floragunn.searchguard.privileges.PrivilegesInterceptor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.logging.log4j.Logger log  
      • Fields inherited from class com.floragunn.searchguard.privileges.PrivilegesInterceptor

        client, clusterService, resolver, threadPool
    • Constructor Summary

      Constructors 
      Constructor Description
      PrivilegesInterceptorImpl​(org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.client.Client client, org.elasticsearch.threadpool.ThreadPool threadPool)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Boolean replaceKibanaIndex​(org.elasticsearch.action.ActionRequest request, String action, com.floragunn.searchguard.user.User user, com.floragunn.searchguard.sgconf.DynamicConfigModel config, com.floragunn.searchguard.resolver.IndexResolverReplacer.Resolved requestedResolved, com.floragunn.searchguard.sgconf.SgRoles sgRoles, com.floragunn.searchguard.sgconf.ConfigModel configModel)
      return Boolean.TRUE to prematurely deny request return Boolean.FALSE to prematurely allow request return null to go through original eval flow
      • Methods inherited from class com.floragunn.searchguard.privileges.PrivilegesInterceptor

        getThreadContext
    • Field Detail

      • log

        protected final org.apache.logging.log4j.Logger log
    • Constructor Detail

      • PrivilegesInterceptorImpl

        public PrivilegesInterceptorImpl​(org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver,
                                         org.elasticsearch.cluster.service.ClusterService clusterService,
                                         org.elasticsearch.client.Client client,
                                         org.elasticsearch.threadpool.ThreadPool threadPool)
    • Method Detail

      • replaceKibanaIndex

        public Boolean replaceKibanaIndex​(org.elasticsearch.action.ActionRequest request,
                                          String action,
                                          com.floragunn.searchguard.user.User user,
                                          com.floragunn.searchguard.sgconf.DynamicConfigModel config,
                                          com.floragunn.searchguard.resolver.IndexResolverReplacer.Resolved requestedResolved,
                                          com.floragunn.searchguard.sgconf.SgRoles sgRoles,
                                          com.floragunn.searchguard.sgconf.ConfigModel configModel)
        return Boolean.TRUE to prematurely deny request return Boolean.FALSE to prematurely allow request return null to go through original eval flow
        Overrides:
        replaceKibanaIndex in class com.floragunn.searchguard.privileges.PrivilegesInterceptor