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() |
boolean |
doesUserHavePermission(String user,
PermissionNameProvider.Name permission) |
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 AuthorizationPluginpublic boolean doesUserHavePermission(String user, PermissionNameProvider.Name permission)
public 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 ValidatingJsonMap getSpec()
getSpec in interface SpecProviderCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.