diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-09-13 18:46:55 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-09-16 19:01:39 -0400 |
commit | 187fd3c34db7c1de32b057598aeb8a4a64ab014a (patch) | |
tree | 1a366e62f6be9ffe7998ceaac2e99e65659deec4 /src/mongo/db/auth/authz_manager_external_state.h | |
parent | 3a87320cb548be3ffddbf943da0af2833f433875 (diff) | |
download | mongo-187fd3c34db7c1de32b057598aeb8a4a64ab014a.tar.gz |
SERVER-9517 Implement generic query method on AuthorizationManagerExternalState
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state.h')
-rw-r--r-- | src/mongo/db/auth/authz_manager_external_state.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state.h b/src/mongo/db/auth/authz_manager_external_state.h index 0762e5f075e..1d65e488480 100644 --- a/src/mongo/db/auth/authz_manager_external_state.h +++ b/src/mongo/db/auth/authz_manager_external_state.h @@ -28,6 +28,7 @@ #pragma once +#include <boost/function.hpp> #include <string> #include <vector> @@ -105,6 +106,14 @@ namespace mongo { BSONObj* result) = 0; /** + * Finds all documents matching "query" in "collectionName". For each document returned, + * calls the function resultProcessor on it. + */ + virtual Status query(const NamespaceString& collectionName, + const BSONObj& query, + const boost::function<void(const BSONObj&)>& resultProcessor) = 0; + + /** * Inserts "document" into "collectionName". */ virtual Status insert(const NamespaceString& collectionName, |