OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MongoRoleFunctions Namespace Reference

Functions

bool createInitialProjectRole (mongocxx::client &adminClient)
 
bool createInitialProjectDbListCollectionsRole (mongocxx::client &adminClient)
 
bool createInitialUserRole (mongocxx::client &adminClient)
 
bool createInitialUserDbListCollectionsRole (mongocxx::client &adminClient)
 
bool createInitialGroupRole (mongocxx::client &adminClient)
 
bool createInitialProjectTemplatesRole (mongocxx::client &adminClient)
 
bool createInitialProjectsLargeDataRole (mongocxx::client &adminClient)
 
bool createInitialSystemDbRole (mongocxx::client &adminClient)
 
bool createInitialSettingsDbRole (mongocxx::client &adminClient)
 
bool createAllAccessibleRole (std::string dbName, std::string roleName, mongocxx::client &adminClient)
 
void createProjectRole (std::string roleName, std::string collectionName, mongocxx::client &adminClient)
 
void createUserRole (std::string roleName, mongocxx::client &adminClient)
 
void addRoleToUserRole (std::string roleName, User &user, mongocxx::client &adminClient)
 
void addRoleToUserRole (std::string roleName, std::string userRoleName, mongocxx::client &adminClient)
 
void removeRoleFromUserRole (std::string roleName, User &user, mongocxx::client &adminClient)
 
void createGroupRole (std::string roleName, mongocxx::client &adminClient)
 
void addRoleToGroupRole (std::string roleName, Group &group, mongocxx::client &adminClient)
 
void removeRoleFromGroupRole (std::string roleName, Group &group, mongocxx::client &adminClient)
 
void addRoleToUser (std::string roleName, std::string username, mongocxx::client &adminClient)
 
void removeRoleFromUser (std::string roleName, std::string username, mongocxx::client &adminClient)
 
void removeRole (std::string roleName, mongocxx::client &adminClient)
 

Function Documentation

◆ addRoleToGroupRole()

void MongoRoleFunctions::addRoleToGroupRole ( std::string roleName,
Group & group,
mongocxx::client & adminClient )

◆ addRoleToUser()

void MongoRoleFunctions::addRoleToUser ( std::string roleName,
std::string username,
mongocxx::client & adminClient )

◆ addRoleToUserRole() [1/2]

void MongoRoleFunctions::addRoleToUserRole ( std::string roleName,
std::string userRoleName,
mongocxx::client & adminClient )

◆ addRoleToUserRole() [2/2]

void MongoRoleFunctions::addRoleToUserRole ( std::string roleName,
User & user,
mongocxx::client & adminClient )

◆ createAllAccessibleRole()

bool MongoRoleFunctions::createAllAccessibleRole ( std::string dbName,
std::string roleName,
mongocxx::client & adminClient )

◆ createGroupRole()

void MongoRoleFunctions::createGroupRole ( std::string roleName,
mongocxx::client & adminClient )

◆ createInitialGroupRole()

bool MongoRoleFunctions::createInitialGroupRole ( mongocxx::client & adminClient)

◆ createInitialProjectDbListCollectionsRole()

bool MongoRoleFunctions::createInitialProjectDbListCollectionsRole ( mongocxx::client & adminClient)

◆ createInitialProjectRole()

bool MongoRoleFunctions::createInitialProjectRole ( mongocxx::client & adminClient)

◆ createInitialProjectsLargeDataRole()

bool MongoRoleFunctions::createInitialProjectsLargeDataRole ( mongocxx::client & adminClient)

◆ createInitialProjectTemplatesRole()

bool MongoRoleFunctions::createInitialProjectTemplatesRole ( mongocxx::client & adminClient)

◆ createInitialSettingsDbRole()

bool MongoRoleFunctions::createInitialSettingsDbRole ( mongocxx::client & adminClient)

◆ createInitialSystemDbRole()

bool MongoRoleFunctions::createInitialSystemDbRole ( mongocxx::client & adminClient)

◆ createInitialUserDbListCollectionsRole()

bool MongoRoleFunctions::createInitialUserDbListCollectionsRole ( mongocxx::client & adminClient)

◆ createInitialUserRole()

bool MongoRoleFunctions::createInitialUserRole ( mongocxx::client & adminClient)

◆ createProjectRole()

void MongoRoleFunctions::createProjectRole ( std::string roleName,
std::string collectionName,
mongocxx::client & adminClient )

◆ createUserRole()

void MongoRoleFunctions::createUserRole ( std::string roleName,
mongocxx::client & adminClient )

◆ removeRole()

void MongoRoleFunctions::removeRole ( std::string roleName,
mongocxx::client & adminClient )

◆ removeRoleFromGroupRole()

void MongoRoleFunctions::removeRoleFromGroupRole ( std::string roleName,
Group & group,
mongocxx::client & adminClient )

◆ removeRoleFromUser()

void MongoRoleFunctions::removeRoleFromUser ( std::string roleName,
std::string username,
mongocxx::client & adminClient )

◆ removeRoleFromUserRole()

void MongoRoleFunctions::removeRoleFromUserRole ( std::string roleName,
User & user,
mongocxx::client & adminClient )