OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MongoProjectFunctions.cpp File Reference

Namespaces

namespace  MongoProjectFunctions
 

Functions

Project MongoProjectFunctions::createProject (std::string projectName, std::string projectType, User &creatingUser, mongocxx::client &adminClient)
 
std::string MongoProjectFunctions::generateProjectCollectionName (mongocxx::client &adminClient)
 
Project MongoProjectFunctions::getProject (bsoncxx::oid &projectId, mongocxx::client &userClient)
 
Project MongoProjectFunctions::getProject (std::string projectName, mongocxx::client &userClient)
 
std::string MongoProjectFunctions::getProjectsInfo (const std::list< std::string > &_projectNames, mongocxx::client &_adminClient)
 
std::vector< ProjectMongoProjectFunctions::getAllUserProjects (User &loggedInUser, std::string filter, int limit, mongocxx::client &userClient)
 
std::vector< ProjectMongoProjectFunctions::getAllProjects (User &loggedInUser, std::string filter, int limit, mongocxx::client &userClient)
 
size_t MongoProjectFunctions::getAllProjectCount (User &loggedInUser, mongocxx::client &userClient)
 
std::vector< ProjectMongoProjectFunctions::getAllGroupProjects (Group &group, mongocxx::client &userClient)
 
Project MongoProjectFunctions::changeProjectName (Project &project, std::string newName, mongocxx::client &adminClient)
 
Project MongoProjectFunctions::changeProjectOwner (Project &project, User &newOwner, mongocxx::client &adminClient)
 
bool MongoProjectFunctions::addGroupToProject (Group &group, Project &project, mongocxx::client &adminClient)
 
bool MongoProjectFunctions::removeGroupFromProject (Group &group, Project &project, mongocxx::client &adminClient)
 
bool MongoProjectFunctions::removeProject (Project &project, mongocxx::client &adminClient)
 
bool MongoProjectFunctions::changeProjectCreator (bsoncxx::oid &projectId, User &oldOwner, User &newOwner, mongocxx::client &adminClient)
 
bool MongoProjectFunctions::checkForCollectionExistence (const std::string &collectionName, mongocxx::client &loggedInUser)
 
std::string MongoProjectFunctions::projectToJson (Project &project)
 
std::string MongoProjectFunctions::projectsToJson (std::vector< Project > &projects)