public class RuleBasedAuthorizationPlugin extends Object implements AuthorizationPlugin, ConfigEditablePlugin
| Modifier and Type | Class and Description |
|---|---|
static interface |
RuleBasedAuthorizationPlugin.Predicate<T>
For making the code work in Java 7.
|
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
HTTP_METHODS |
| 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.
|
void |
init(Map<String,Object> initInfo) |
static void |
main(String[] args) |
public AuthorizationResponse authorize(AuthorizationContext context)
authorize in interface AuthorizationPluginpublic void init(Map<String,Object> initInfo)
init in interface AuthorizationPluginpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Map<String,Object> edit(Map<String,Object> latestConf, List<CommandOperation> commands)
ConfigEditablePluginedit in interface ConfigEditablePluginpublic static void main(String[] args)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.