Package org.apache.solr.handler.admin
Class SecurityConfHandler
java.lang.Object
org.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.admin.SecurityConfHandler
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
- Direct Known Subclasses:
SecurityConfHandlerLocal,SecurityConfHandlerZk
public abstract class SecurityConfHandler
extends RequestHandlerBase
implements PermissionNameProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classObject to hold security.json as nestedMap<String,Object>and optionally its version.Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetricsNested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.NameNested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
FieldsFields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, publishCpuTime, REQUEST_CPU_TIMER_CONTEXT, solrMetricsContext, SOURCE_ATTRFields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, valuesFields inherited from interface org.apache.solr.metrics.SolrMetricProducer
CATEGORY_ATTR, HANDLER_ATTR, NAME_ATTR, OPERATION_ATTR, PLUGIN_NAME_ATTR, RESULT_ATTR, TYPE_ATTRFields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApis()Returns any (non-JAX-RS annotated) APIs associated with this request handler.Category of this componentprotected abstract voidgetConf(SolrQueryResponse rsp, String key) Simple one or two line descriptionstatic ListgetListValue(Map<String, Object> lookupMap, String key) getMapValue(Map<String, Object> lookupMap, String key) abstract SecurityConfHandler.SecurityConfiggetSecurityConfig(boolean getFresh) Gets security.json from sourcevoidprotected abstract booleanpersistConf(SecurityConfHandler.SecurityConfig securityConfig) Persist security.json to the source, optionally with a versionWhether this request handler must be made available at the /v2/ pathprotected voidHook where you can do stuff after a config has been edited.Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources, registerV1Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
Field Details
-
cores
-
-
Constructor Details
-
SecurityConfHandler
-
-
Method Details
-
getPermissionName
- Specified by:
getPermissionNamein interfacePermissionNameProvider
-
handleRequestBody
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
securityConfEdited
protected void securityConfEdited()Hook where you can do stuff after a config has been edited. Defaults to NOP -
getConf
-
getMapValue
-
getListValue
-
getDescription
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
getCategory
Description copied from interface:SolrInfoBeanCategory of this component- Specified by:
getCategoryin interfaceSolrInfoBean- Overrides:
getCategoryin classRequestHandlerBase
-
getSecurityConfig
Gets security.json from source -
persistConf
protected abstract boolean persistConf(SecurityConfHandler.SecurityConfig securityConfig) throws IOException Persist security.json to the source, optionally with a version- Throws:
IOException
-
getApis
Description copied from interface:ApiSupportReturns any (non-JAX-RS annotated) APIs associated with this request handler.- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- See Also:
-
registerV2
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path- Specified by:
registerV2in interfaceApiSupport
-