Class SgConfigAction
- 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.SgConfigAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
public class SgConfigAction 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 SgConfigAction(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 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)protected voidhandleApiRequest(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected voidhandleDelete(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)protected voidhandleGet(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)protected voidhandlePost(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)protected voidhandlePut(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)List<org.elasticsearch.rest.RestHandler.Route>routes()-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.PatchableResourceApiAction
getStandardResourceRoutes, postProcessApplyPatchResult
-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
badRequestResponse, badRequestResponse, checkConfigUpdateResponse, consumeParameters, convertToJson, createdResponse, ensureIndexExists, filter, forbidden, getName, 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
-
SgConfigAction
@Inject public SgConfigAction(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
-
handleGet
protected void handleGet(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content) throws IOException- Overrides:
handleGetin classAbstractApiAction- Throws:
IOException
-
handleApiRequest
protected void handleApiRequest(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException- Overrides:
handleApiRequestin classPatchableResourceApiAction- Throws:
IOException
-
handlePut
protected void handlePut(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content) throws IOException- Overrides:
handlePutin classAbstractApiAction- Throws:
IOException
-
handlePost
protected void handlePost(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content) throws IOException- Overrides:
handlePostin classAbstractApiAction- Throws:
IOException
-
handleDelete
protected void handleDelete(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content) throws IOException- Overrides:
handleDeletein classAbstractApiAction- Throws:
IOException
-
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
-
getEndpoint
protected Endpoint getEndpoint()
- Specified by:
getEndpointin classAbstractApiAction
-
getResourceName
protected String getResourceName()
- Specified by:
getResourceNamein classAbstractApiAction
-
-