Package org.apache.solr.security
Class RuleBasedAuthorizationPlugin
- java.lang.Object
-
- org.apache.solr.security.RuleBasedAuthorizationPlugin
-
- All Implemented Interfaces:
Closeable,AutoCloseable,SpecProvider,AuthorizationPlugin,ConfigEditablePlugin
public class RuleBasedAuthorizationPlugin extends Object implements AuthorizationPlugin, ConfigEditablePlugin, SpecProvider
-
-
Constructor Summary
Constructors Constructor Description RuleBasedAuthorizationPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationResponseauthorize(AuthorizationContext context)voidclose()Map<String,Object>edit(Map<String,Object> latestConf, List<CommandOperation> commands)Operate the commands on the latest conf and return a new conf object If there are errors in the commands , throw a SolrException.ValidatingJsonMapgetSpec()voidinit(Map<String,Object> initInfo)
-
-
-
Method Detail
-
authorize
public AuthorizationResponse authorize(AuthorizationContext context)
- Specified by:
authorizein interfaceAuthorizationPlugin
-
init
public void init(Map<String,Object> initInfo)
- Specified by:
initin interfaceAuthorizationPlugin
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
edit
public Map<String,Object> edit(Map<String,Object> latestConf, List<CommandOperation> commands)
Description copied from interface:ConfigEditablePluginOperate the commands on the latest conf and return a new conf object If there are errors in the commands , throw a SolrException. return a null if no changes are to be made as a result of this edit. It is the responsibility of the implementation to ensure that the returned config is valid . The framework does no validation of the data- Specified by:
editin interfaceConfigEditablePlugin
-
getSpec
public ValidatingJsonMap getSpec()
- Specified by:
getSpecin interfaceSpecProvider
-
-