public abstract class SecurityConfHandler extends RequestHandlerBase implements PermissionNameProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityConfHandler.SecurityConfig
Object to hold security.json as nested
Map<String,Object> and optionally its version. |
PermissionNameProvider.NameSolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
protected CoreContainer |
cores |
appends, defaults, httpCaching, initArgs, invariants, solrMetricsContextANY, NULL, valuesTYPE| Constructor and Description |
|---|
SecurityConfHandler(CoreContainer coreContainer) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Api> |
getApis()
It is possible to support multiple v2 apis by a single requesthandler
|
SolrInfoBean.Category |
getCategory()
Category of this component
|
protected abstract void |
getConf(SolrQueryResponse rsp,
String key) |
String |
getDescription()
Simple one or two line description
|
static List |
getListValue(Map<String,Object> lookupMap,
String key) |
static Map<String,Object> |
getMapValue(Map<String,Object> lookupMap,
String key) |
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext ctx) |
abstract SecurityConfHandler.SecurityConfig |
getSecurityConfig(boolean getFresh)
Gets security.json from source
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
protected abstract boolean |
persistConf(SecurityConfHandler.SecurityConfig securityConfig)
Persist security.json to the source, optionally with a version
|
Boolean |
registerV2()
Whether this request handler must be made available at the /v2/ path
|
protected void |
securityConfEdited()
Hook where you can do stuff after a config has been edited.
|
getInitArgs, getMetricNames, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNameclose, getUniqueMetricTag, initializeMetricsregisterV1protected CoreContainer cores
public SecurityConfHandler(CoreContainer coreContainer)
public PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
getPermissionName in interface PermissionNameProviderpublic void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody in class RequestHandlerBaseExceptionprotected void securityConfEdited()
protected abstract void getConf(SolrQueryResponse rsp, String key)
public String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class RequestHandlerBasepublic SolrInfoBean.Category getCategory()
SolrInfoBeangetCategory in interface SolrInfoBeangetCategory in class RequestHandlerBasepublic abstract SecurityConfHandler.SecurityConfig getSecurityConfig(boolean getFresh)
protected abstract boolean persistConf(SecurityConfHandler.SecurityConfig securityConfig) throws IOException
IOExceptionpublic Collection<Api> getApis()
ApiSupportgetApis in interface ApiSupportgetApis in class RequestHandlerBasepublic Boolean registerV2()
ApiSupportregisterV2 in interface ApiSupportCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.