Class DlsFlsValveImpl

  • All Implemented Interfaces:
    com.floragunn.searchguard.configuration.DlsFlsRequestValve

    public class DlsFlsValveImpl
    extends Object
    implements com.floragunn.searchguard.configuration.DlsFlsRequestValve
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DlsFlsValveImpl.Mode  
      • Nested classes/interfaces inherited from interface com.floragunn.searchguard.configuration.DlsFlsRequestValve

        com.floragunn.searchguard.configuration.DlsFlsRequestValve.NoopDlsFlsRequestValve
    • Constructor Summary

      Constructors 
      Constructor Description
      DlsFlsValveImpl​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.client.Client nodeClient, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, com.floragunn.searchguard.GuiceDependencies guiceDependencies, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleSearchContext​(org.elasticsearch.search.internal.SearchContext context, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry)  
      boolean invoke​(String action, org.elasticsearch.action.ActionRequest request, org.elasticsearch.action.ActionListener<?> listener, com.floragunn.searchguard.sgconf.EvaluatedDlsFlsConfig evaluatedDlsFlsConfig, boolean localHashingEnabled, com.floragunn.searchguard.resolver.IndexResolverReplacer.Resolved resolved)  
    • Constructor Detail

      • DlsFlsValveImpl

        public DlsFlsValveImpl​(org.elasticsearch.common.settings.Settings settings,
                               org.elasticsearch.client.Client nodeClient,
                               org.elasticsearch.cluster.service.ClusterService clusterService,
                               org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver,
                               com.floragunn.searchguard.GuiceDependencies guiceDependencies,
                               org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry,
                               org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
    • Method Detail

      • invoke

        public boolean invoke​(String action,
                              org.elasticsearch.action.ActionRequest request,
                              org.elasticsearch.action.ActionListener<?> listener,
                              com.floragunn.searchguard.sgconf.EvaluatedDlsFlsConfig evaluatedDlsFlsConfig,
                              boolean localHashingEnabled,
                              com.floragunn.searchguard.resolver.IndexResolverReplacer.Resolved resolved)
        Specified by:
        invoke in interface com.floragunn.searchguard.configuration.DlsFlsRequestValve
        Parameters:
        request -
        listener -
        Returns:
        false on error
      • handleSearchContext

        public void handleSearchContext​(org.elasticsearch.search.internal.SearchContext context,
                                        org.elasticsearch.threadpool.ThreadPool threadPool,
                                        org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry)
        Specified by:
        handleSearchContext in interface com.floragunn.searchguard.configuration.DlsFlsRequestValve