Class InternalUsersApiAction
- 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.InternalUsersApiAction
-
- All Implemented Interfaces:
org.elasticsearch.rest.RestHandler
public class InternalUsersApiAction 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 InternalUsersApiAction(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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfilter(com.floragunn.searchguard.sgconf.impl.SgDynamicConfiguration<?> builder)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... params)protected voidhandlePut(org.elasticsearch.rest.RestChannel channel, org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.Client client, com.fasterxml.jackson.databind.JsonNode content)static Stringhash(char[] clearTextPassword)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)List<org.elasticsearch.rest.RestHandler.Route>routes()-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.PatchableResourceApiAction
getStandardResourceRoutes, handleApiRequest
-
Methods inherited from class com.floragunn.searchguard.dlic.rest.api.AbstractApiAction
badRequestResponse, badRequestResponse, checkConfigUpdateResponse, consumeParameters, convertToJson, createdResponse, ensureIndexExists, forbidden, getName, handleDelete, handleGet, handlePost, 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
-
InternalUsersApiAction
@Inject public InternalUsersApiAction(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
-
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
-
filter
protected void filter(com.floragunn.searchguard.sgconf.impl.SgDynamicConfiguration<?> builder)
- Overrides:
filterin classAbstractApiAction
-
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)
- Overrides:
postProcessApplyPatchResultin classPatchableResourceApiAction
-
hash
public static String hash(char[] clearTextPassword)
-
getResourceName
protected String getResourceName()
- Specified by:
getResourceNamein classAbstractApiAction
-
getConfigName
protected com.floragunn.searchguard.sgconf.impl.CType getConfigName()
- Specified by:
getConfigNamein classAbstractApiAction
-
getValidator
protected AbstractConfigurationValidator getValidator(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.bytes.BytesReference ref, Object... params)
- Specified by:
getValidatorin classAbstractApiAction
-
-