Class TenantsApiAction

    • Constructor Detail

      • TenantsApiAction

        @Inject
        public TenantsApiAction​(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 evaluator,
                                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
      • consumeParameters

        protected void consumeParameters​(org.elasticsearch.rest.RestRequest request)
        Description copied from class: AbstractApiAction
        Consume all defined parameters for the request. Before we handle the request in subclasses where we actually need the parameter, some global checks are performed, e.g. check whether the SG index exists. Thus, the parameter(s) have not been consumed, and ES will always return a 400 with an internal error message.
        Overrides:
        consumeParameters in class AbstractApiAction