Package org.apache.solr.handler.admin
Class SecurityConfHandlerLocal
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.SecurityConfHandler
-
- org.apache.solr.handler.admin.SecurityConfHandlerLocal
-
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class SecurityConfHandlerLocal extends SecurityConfHandler
Security Configuration Handler which works on standalone local files
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.handler.admin.SecurityConfHandler
SecurityConfHandler.SecurityConfig
-
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetrics
-
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.Name
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description protected PathsecurityJsonPath-
Fields inherited from class org.apache.solr.handler.admin.SecurityConfHandler
cores
-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, solrMetricsContext
-
Fields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, values
-
Fields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE
-
-
Constructor Summary
Constructors Constructor Description SecurityConfHandlerLocal(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgetConf(SolrQueryResponse rsp, String key)StringgetDescription()Simple one or two line descriptionSecurityConfHandler.SecurityConfiggetSecurityConfig(boolean getFresh)Fetches security props from SOLR_HOMEprotected booleanpersistConf(SecurityConfHandler.SecurityConfig securityConfig)Persist security.json to the source, optionally with a versionprotected voidsecurityConfEdited()Hook where you can do stuff after a config has been edited.-
Methods inherited from class org.apache.solr.handler.admin.SecurityConfHandler
getApis, getCategory, getListValue, getMapValue, getPermissionName, handleRequestBody, registerV2
-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources, registerV1
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Field Detail
-
securityJsonPath
protected Path securityJsonPath
-
-
Constructor Detail
-
SecurityConfHandlerLocal
public SecurityConfHandlerLocal(CoreContainer coreContainer)
-
-
Method Detail
-
getSecurityConfig
public SecurityConfHandler.SecurityConfig getSecurityConfig(boolean getFresh)
Fetches security props from SOLR_HOME- Specified by:
getSecurityConfigin classSecurityConfHandler- Parameters:
getFresh- NOP- Returns:
- SecurityConfig whose data property either contains security.json, or an empty map if not found
-
getConf
protected void getConf(SolrQueryResponse rsp, String key)
- Specified by:
getConfin classSecurityConfHandler
-
persistConf
protected boolean persistConf(SecurityConfHandler.SecurityConfig securityConfig) throws IOException
Description copied from class:SecurityConfHandlerPersist security.json to the source, optionally with a version- Specified by:
persistConfin classSecurityConfHandler- Throws:
IOException
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Overrides:
getDescriptionin classSecurityConfHandler
-
securityConfEdited
protected void securityConfEdited()
Description copied from class:SecurityConfHandlerHook where you can do stuff after a config has been edited. Defaults to NOP- Overrides:
securityConfEditedin classSecurityConfHandler
-
-