OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MongoGroupFunctions.h File Reference

Go to the source code of this file.

Namespaces

namespace  MongoGroupFunctions
 

Functions

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