7#include <bsoncxx/json.hpp>
8#include <bsoncxx/types.hpp>
9#include <mongocxx/client.hpp>
10#include <mongocxx/stdx.hpp>
11#include <mongocxx/uri.hpp>
12#include <mongocxx/instance.hpp>
13#include <bsoncxx/builder/stream/helpers.hpp>
14#include <bsoncxx/builder/stream/document.hpp>
15#include <bsoncxx/builder/stream/array.hpp>
20using bsoncxx::builder::stream::close_array;
21using bsoncxx::builder::stream::close_document;
22using bsoncxx::builder::stream::document;
23using bsoncxx::builder::stream::finalize;
24using bsoncxx::builder::stream::open_array;
25using bsoncxx::builder::stream::open_document;
26using bsoncxx::document::value;
27using bsoncxx::document::view;
28using bsoncxx::document::element;
51 void createProjectRole(std::string roleName, std::string collectionName, mongocxx::client& adminClient);
54 void createUserRole(std::string roleName, mongocxx::client& adminClient);
56 void addRoleToUserRole(std::string roleName, std::string userRoleName, mongocxx::client& adminClient);
60 void createGroupRole(std::string roleName, mongocxx::client& adminClient);
67 void addRoleToUser(std::string roleName, std::string username, mongocxx::client& adminClient);
69 void removeRoleFromUser(std::string roleName, std::string username, mongocxx::client& adminClient);
72 void removeRole(std::string roleName, mongocxx::client& adminClient);
Definition MongoRoleFunctions.h:32
bool createInitialProjectDbListCollectionsRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:68
void removeRole(std::string roleName, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:591
void addRoleToGroupRole(std::string roleName, Group &group, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:536
void removeRoleFromUser(std::string roleName, std::string username, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:584
bool createInitialGroupRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:221
void createGroupRole(std::string roleName, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:520
void addRoleToUserRole(std::string roleName, User &user, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:478
bool createAllAccessibleRole(std::string dbName, std::string roleName, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:297
void createProjectRole(std::string roleName, std::string collectionName, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:366
void removeRoleFromUserRole(std::string roleName, User &user, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:501
bool createInitialProjectRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:9
bool createInitialSystemDbRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:283
void createUserRole(std::string roleName, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:463
bool createInitialProjectTemplatesRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:269
bool createInitialProjectsLargeDataRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:276
bool createInitialUserDbListCollectionsRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:174
bool createInitialUserRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:115
void addRoleToUser(std::string roleName, std::string username, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:577
void removeRoleFromGroupRole(std::string roleName, Group &group, mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:556
bool createInitialSettingsDbRole(mongocxx::client &adminClient)
Definition MongoRoleFunctions.cpp:290