Class PermissionsInfoAction

  • All Implemented Interfaces:
    org.elasticsearch.rest.RestHandler

    public class PermissionsInfoAction
    extends org.elasticsearch.rest.BaseRestHandler
    Provides the evaluated REST API permissions for the currently logged in user
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.rest.BaseRestHandler

        org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer, org.elasticsearch.rest.BaseRestHandler.Wrapper
      • Nested classes/interfaces inherited from interface org.elasticsearch.rest.RestHandler

        org.elasticsearch.rest.RestHandler.DeprecatedRoute, org.elasticsearch.rest.RestHandler.ReplacedRoute, org.elasticsearch.rest.RestHandler.Route
    • Field Summary

      • Fields inherited from class org.elasticsearch.rest.BaseRestHandler

        DEFAULT_INCLUDE_TYPE_NAME_POLICY, INCLUDE_TYPE_NAME_PARAMETER, logger, MULTI_ALLOW_EXPLICIT_INDEX
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PermissionsInfoAction​(org.elasticsearch.common.settings.Settings settings, Path configPath, org.elasticsearch.rest.RestController controller, org.elasticsearch.client.Client client, com.floragunn.searchguard.configuration.AdminDNs adminDNs, com.floragunn.searchguard.configuration.ConfigurationRepository cl, org.elasticsearch.cluster.service.ClusterService cs, com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor, com.floragunn.searchguard.privileges.PrivilegesEvaluator privilegesEvaluator, org.elasticsearch.threadpool.ThreadPool threadPool, com.floragunn.searchguard.auditlog.AuditLog auditLog)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getName()  
      protected org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.node.NodeClient client)  
      List<org.elasticsearch.rest.RestHandler.Route> routes()  
      • Methods inherited from class org.elasticsearch.rest.BaseRestHandler

        getUsageCount, handleRequest, responseParams, unrecognized
      • Methods inherited from interface org.elasticsearch.rest.RestHandler

        allowsUnsafeBuffers, canTripCircuitBreaker, deprecatedRoutes, replacedRoutes, supportsContentStream
    • Constructor Detail

      • PermissionsInfoAction

        protected PermissionsInfoAction​(org.elasticsearch.common.settings.Settings settings,
                                        Path configPath,
                                        org.elasticsearch.rest.RestController controller,
                                        org.elasticsearch.client.Client client,
                                        com.floragunn.searchguard.configuration.AdminDNs adminDNs,
                                        com.floragunn.searchguard.configuration.ConfigurationRepository cl,
                                        org.elasticsearch.cluster.service.ClusterService cs,
                                        com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor,
                                        com.floragunn.searchguard.privileges.PrivilegesEvaluator privilegesEvaluator,
                                        org.elasticsearch.threadpool.ThreadPool threadPool,
                                        com.floragunn.searchguard.auditlog.AuditLog auditLog)
    • Method Detail

      • routes

        public List<org.elasticsearch.rest.RestHandler.Route> routes()
        Specified by:
        routes in interface org.elasticsearch.rest.RestHandler
        Specified by:
        routes in class org.elasticsearch.rest.BaseRestHandler
      • getName

        public String getName()
        Specified by:
        getName in class org.elasticsearch.rest.BaseRestHandler
      • prepareRequest

        protected org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request,
                                                                                            org.elasticsearch.client.node.NodeClient client)
                                                                                     throws IOException
        Specified by:
        prepareRequest in class org.elasticsearch.rest.BaseRestHandler
        Throws:
        IOException