Class PatchableResourceApiAction
- java.lang.Object
-
- org.elasticsearch.rest.BaseRestHandler
-
- com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
-
- com.floragunn.searchguard.dlic.rest.api.PatchableResourceApiAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
- Direct Known Subclasses:
ActionGroupsApiAction,BlocksApiAction,InternalUsersApiAction,RolesApiAction,RolesMappingApiAction,SgConfigAction,TenantsApiAction
public abstract class PatchableResourceApiAction extends AbstractApiAction
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Loggerlog-
Fields inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
acceptInvalidLicense, auditLog, cl, cs, settings, staticSgConfig
-
-
Constructor Summary
Constructors Constructor Description PatchableResourceApiAction(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 List<org.elasticsearch.rest.RestHandler.Route>getStandardResourceRoutes(String resourceName)protected voidhandleApiRequest(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client)protected AbstractConfigurationValidatorpostProcessApplyPatchResult(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, com.fasterxml.jackson.databind.JsonNode existingResourceAsJsonNode, com.fasterxml.jackson.databind.JsonNode updatedResourceAsJsonNode, String resourceName)-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
badRequestResponse, badRequestResponse, checkConfigUpdateResponse, consumeParameters, convertToJson, createdResponse, ensureIndexExists, filter, forbidden, getConfigName, getEndpoint, getName, getResourceName, getValidator, 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, routes, unrecognized
-
-
-
-
Constructor Detail
-
PatchableResourceApiAction
public PatchableResourceApiAction(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
-
getStandardResourceRoutes
protected List<org.elasticsearch.rest.RestHandler.Route> getStandardResourceRoutes(String resourceName)
-
postProcessApplyPatchResult
protected AbstractConfigurationValidator postProcessApplyPatchResult(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, com.fasterxml.jackson.databind.JsonNode existingResourceAsJsonNode, com.fasterxml.jackson.databind.JsonNode updatedResourceAsJsonNode, String resourceName)
-
handleApiRequest
protected void handleApiRequest(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client) throws IOException- Overrides:
handleApiRequestin classAbstractApiAction- Throws:
IOException
-
-