public class BulkRequestContext extends Object
Class to optimize ConfigAdmin access with the lifecycle of single
bulk query invocation. This prevents countless
listings of ConfigAdmin configurations
for each checked MBean/method.
Access to this object doesn't have to be synchronized, as it is passed down the canInvoke chain.
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllPids()
Returns list of PIDs related to RBAC/ACL
|
Dictionary<String,Object> |
getConfiguration(String generalPid)
Returns
ConfigAdmin configuration - may be cached in this instance of
context |
Set<Principal> |
getPrincipals() |
List<Dictionary<String,Object>> |
getWhitelistProperties()
Returns list of configurations from
|
boolean |
isAnonymous() |
static BulkRequestContext |
newContext(org.osgi.service.cm.ConfigurationAdmin configAdmin) |
public static BulkRequestContext newContext(org.osgi.service.cm.ConfigurationAdmin configAdmin) throws IOException
IOExceptionpublic List<Dictionary<String,Object>> getWhitelistProperties()
public Dictionary<String,Object> getConfiguration(String generalPid) throws IOException
ConfigAdmin configuration - may be cached in this instance of
contextgeneralPid - IOExceptionpublic boolean isAnonymous()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.