Functions | |
void | createGroup (std::string groupName, User &creatingUser, mongocxx::client &adminClient) |
std::vector< Group > | getAllUserGroups (User &loggedInUser, mongocxx::client &userClient) |
std::vector< Group > | getAllGroups (User &loggedInUser, mongocxx::client &userClient) |
size_t | getAllGroupCount (User &loggedInUser, mongocxx::client &userClient) |
Group | getGroupDataByName (std::string groupName, mongocxx::client &userClient) |
Group | getGroupDataById (std::string groupId, mongocxx::client &userClient) |
bool | changeGroupName (std::string oldName, std::string newName, mongocxx::client &adminClient) |
bool | changeGroupOwner (Group &group, User &oldUser, User &newUser, mongocxx::client &adminClient) |
bool | addUserToGroup (User &loggedInUser, std::string groupName, mongocxx::client &adminClient) |
bool | removeUserFromGroup (User &loggedInUser, std::string groupName, mongocxx::client &adminClient) |
bool | removeGroup (Group &groupToBeRemoved, mongocxx::client &adminClient) |
std::string | groupToJson (Group &grp) |
std::string | groupsToJson (std::vector< Group > &groups) |
std::string | generateUniqueGroupName (mongocxx::client &adminClient) |
bool MongoGroupFunctions::addUserToGroup | ( | User & | loggedInUser, |
std::string | groupName, | ||
mongocxx::client & | adminClient ) |
bool MongoGroupFunctions::changeGroupName | ( | std::string | oldName, |
std::string | newName, | ||
mongocxx::client & | adminClient ) |
bool MongoGroupFunctions::changeGroupOwner | ( | Group & | group, |
User & | oldUser, | ||
User & | newUser, | ||
mongocxx::client & | adminClient ) |
void MongoGroupFunctions::createGroup | ( | std::string | groupName, |
User & | creatingUser, | ||
mongocxx::client & | adminClient ) |
std::string MongoGroupFunctions::generateUniqueGroupName | ( | mongocxx::client & | adminClient | ) |
size_t MongoGroupFunctions::getAllGroupCount | ( | User & | loggedInUser, |
mongocxx::client & | userClient ) |
std::vector< Group > MongoGroupFunctions::getAllGroups | ( | User & | loggedInUser, |
mongocxx::client & | userClient ) |
std::vector< Group > MongoGroupFunctions::getAllUserGroups | ( | User & | loggedInUser, |
mongocxx::client & | userClient ) |
Group MongoGroupFunctions::getGroupDataById | ( | std::string | groupId, |
mongocxx::client & | userClient ) |
Group MongoGroupFunctions::getGroupDataByName | ( | std::string | groupName, |
mongocxx::client & | userClient ) |
std::string MongoGroupFunctions::groupsToJson | ( | std::vector< Group > & | groups | ) |
std::string MongoGroupFunctions::groupToJson | ( | Group & | grp | ) |
bool MongoGroupFunctions::removeGroup | ( | Group & | groupToBeRemoved, |
mongocxx::client & | adminClient ) |
bool MongoGroupFunctions::removeUserFromGroup | ( | User & | loggedInUser, |
std::string | groupName, | ||
mongocxx::client & | adminClient ) |