summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2012-04-04 19:09:31 +0000
committerCharles E. Rolke <chug@apache.org>2012-04-04 19:09:31 +0000
commit2d551381ec4f131e5291f8f071081c06e53ece1b (patch)
treef0f3e88085b024381115dd9cb6f0e8ff5a3c9df3 /tools
parent8f49d0622553f01ca368da6a26535d93d2e4d364 (diff)
downloadqpid-python-2d551381ec4f131e5291f8f071081c06e53ece1b.tar.gz
QPID-3918 Add management queries to ACL module.
* Make queries available to self tests. * Exercise query interface during acl self tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1309549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rw-r--r--tools/src/py/qpidtoollibs/broker.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/src/py/qpidtoollibs/broker.py b/tools/src/py/qpidtoollibs/broker.py
index c2340de9dd..0bae786306 100644
--- a/tools/src/py/qpidtoollibs/broker.py
+++ b/tools/src/py/qpidtoollibs/broker.py
@@ -268,6 +268,20 @@ class BrokerAgent(object):
def reloadAclFile(self):
self._method('reloadACLFile', {}, "org.apache.qpid.acl:acl:org.apache.qpid.broker:broker:amqp-broker")
+ def acl_lookup(self, userName, action, aclObj, aclObjName, propMap):
+ args = {'userId': userName,
+ 'action': action,
+ 'object': aclObj,
+ 'objectName': aclObjName,
+ 'propertyMap': propMap}
+ return self._method('Lookup', args, "org.apache.qpid.acl:acl:org.apache.qpid.broker:broker:amqp-broker")
+
+ def acl_lookupPublish(self, userName, exchange, key):
+ args = {'userId': userName,
+ 'exchangeName': exchange,
+ 'routingKey': key}
+ return self._method('LookupPublish', args, "org.apache.qpid.acl:acl:org.apache.qpid.broker:broker:amqp-broker")
+
def create(self, _type, name, properties, strict):
"""Create an object of the specified type"""
pass