public class RuleBasedAuthorizationPlugin extends Object implements AuthorizationPlugin, ConfigEditablePlugin, SpecProvider
Constructor and Description |
---|
RuleBasedAuthorizationPlugin() |
Modifier and Type | Method and Description |
---|---|
AuthorizationResponse |
authorize(AuthorizationContext context) |
void |
close() |
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.
|
ValidatingJsonMap |
getSpec() |
void |
init(Map<String,Object> initInfo) |
public AuthorizationResponse authorize(AuthorizationContext context)
authorize
in interface AuthorizationPlugin
public void init(Map<String,Object> initInfo)
init
in interface AuthorizationPlugin
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Map<String,Object> edit(Map<String,Object> latestConf, List<CommandOperation> commands)
ConfigEditablePlugin
edit
in interface ConfigEditablePlugin
public ValidatingJsonMap getSpec()
getSpec
in interface SpecProvider
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.