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