Class TenantsApiAction
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
-
- com.floragunn.searchguard.dlic.rest.api.PatchableResourceApiAction
-
- com.floragunn.searchguard.dlic.rest.api.TenantsApiAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
public class TenantsApiAction extends PatchableResourceApiAction
-
-
Field Summary
-
Fields inherited from class com.floragunn.searchguard.dlic.rest.api.PatchableResourceApiAction
log
-
Fields inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
acceptInvalidLicense, auditLog, cl, cs, settings, staticSgConfig
-
-
Constructor Summary
Constructors Constructor Description 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, com.floragunn.searchguard.sgconf.StaticSgConfig staticSgConfig, org.elasticsearch.cluster.service.ClusterService cs, com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor, com.floragunn.searchguard.privileges.PrivilegesEvaluator evaluator, com.floragunn.searchguard.privileges.SpecialPrivilegesEvaluationContextProviderRegistry specialPrivilegesEvaluationContextProviderRegistry, org.elasticsearch.threadpool.ThreadPool threadPool, com.floragunn.searchguard.auditlog.AuditLog auditLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconsumeParameters(org.elasticsearch.rest.RestRequest request)Consume all defined parameters for the request.protected com.floragunn.searchguard.sgconf.impl.CTypegetConfigName()protected EndpointgetEndpoint()protected StringgetResourceName()protected AbstractConfigurationValidatorgetValidator(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.bytes.BytesReference ref, Object... param)List<org.elasticsearch.rest.RestHandler.Route>routes()-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.PatchableResourceApiAction
getStandardResourceRoutes, handleApiRequest, postProcessApplyPatchResult
-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
badRequestResponse, badRequestResponse, checkConfigUpdateResponse, convertToJson, createdResponse, ensureIndexExists, filter, forbidden, getName, handleDelete, handleGet, handlePost, handlePut, internalErrorResponse, isHidden, isReserved, isStatic, load, notFound, notImplemented, prepareRequest, response, saveAnUpdateConfigs, successResponse, successResponse, successResponse, unprocessable
-
Methods inherited from class org.elasticsearch.rest.BaseRestHandler
getUsageCount, handleRequest, responseParams, unrecognized
-
-
-
-
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, com.floragunn.searchguard.sgconf.StaticSgConfig staticSgConfig, org.elasticsearch.cluster.service.ClusterService cs, com.floragunn.searchguard.ssl.transport.PrincipalExtractor principalExtractor, com.floragunn.searchguard.privileges.PrivilegesEvaluator evaluator, com.floragunn.searchguard.privileges.SpecialPrivilegesEvaluationContextProviderRegistry specialPrivilegesEvaluationContextProviderRegistry, org.elasticsearch.threadpool.ThreadPool threadPool, com.floragunn.searchguard.auditlog.AuditLog auditLog)
-
-
Method Detail
-
routes
public List<org.elasticsearch.rest.RestHandler.Route> routes()
- Specified by:
routesin interfaceorg.elasticsearch.rest.RestHandler- Specified by:
routesin classorg.elasticsearch.rest.BaseRestHandler
-
getEndpoint
protected Endpoint getEndpoint()
- Specified by:
getEndpointin classAbstractApiAction
-
getValidator
protected AbstractConfigurationValidator getValidator(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.bytes.BytesReference ref, Object... param)
- Specified by:
getValidatorin classAbstractApiAction
-
getConfigName
protected com.floragunn.searchguard.sgconf.impl.CType getConfigName()
- Specified by:
getConfigNamein classAbstractApiAction
-
getResourceName
protected String getResourceName()
- Specified by:
getResourceNamein classAbstractApiAction
-
consumeParameters
protected void consumeParameters(org.elasticsearch.rest.RestRequest request)
Description copied from class:AbstractApiActionConsume 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:
consumeParametersin classAbstractApiAction
-
-