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 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 static void main(String[] args)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.