6#include <bsoncxx/json.hpp>
7#include <bsoncxx/types.hpp>
19 Project(
const bsoncxx::v_noabi::document::view& _view);
20 Project(
const bsoncxx::v_noabi::document::view& _view, mongocxx::client& _userClient);
28 void setId(
const bsoncxx::oid& _id) { m_id = _id; };
29 const bsoncxx::oid&
getId(
void)
const {
return m_id; };
31 void setName(
const std::string& _name) { m_name = _name; };
32 const std::string&
getName(
void)
const {
return m_name; };
34 void setType(
const std::string& _type) { m_type = _type; };
35 const std::string&
getType(
void)
const {
return m_type; };
37 void setRoleName(
const std::string& _roleName) { m_roleName = _roleName; };
38 const std::string&
getRoleName(
void)
const {
return m_roleName; };
40 void setCollectionName(
const std::string& _collectionName) { m_collectionName = _collectionName; };
43 void setCreatedOn(bsoncxx::types::b_date _msSinceEpoch) { m_createdOn = _msSinceEpoch; };
44 bsoncxx::types::b_date
getCreatedOn(
void)
const {
return m_createdOn; };
50 void setGroups(
const std::vector<Group>& _groups) { m_groups = _groups; };
51 const std::vector<Group>&
getGroups(
void)
const {
return m_groups; };
56 void setLastAccessedOn(bsoncxx::types::b_date _msSinceEpoch) { m_lastAccessedOn = _msSinceEpoch; };
60 void importData(
const bsoncxx::v_noabi::document::view& _view);
65 std::string m_roleName;
66 std::string m_collectionName;
67 bsoncxx::types::b_date m_createdOn;
69 std::vector<Group> m_groups;
71 bsoncxx::types::b_date m_lastAccessedOn;
void setLastAccessedOn(bsoncxx::types::b_date _msSinceEpoch)
Definition Project.h:56
void setGroups(const std::vector< Group > &_groups)
Definition Project.h:50
const bsoncxx::oid & getId(void) const
Definition Project.h:29
void setVersion(int _version)
Definition Project.h:53
const std::string & getType(void) const
Definition Project.h:35
const std::string & getName(void) const
Definition Project.h:32
void setRoleName(const std::string &_roleName)
Definition Project.h:37
void setUser(const User &_user)
Definition Project.h:46
Project(Project &&)=default
bsoncxx::types::b_date getLastAccessedOn(void) const
Definition Project.h:57
Project()
Definition Project.cpp:3
const std::string & getRoleName(void) const
Definition Project.h:38
void setName(const std::string &_name)
Definition Project.h:31
void setId(const bsoncxx::oid &_id)
Definition Project.h:28
void setType(const std::string &_type)
Definition Project.h:34
const std::string & getCollectionName(void) const
Definition Project.h:41
void setCollectionName(const std::string &_collectionName)
Definition Project.h:40
~Project()
Definition Project.h:23
void addGroup(const Group &_group)
Definition Project.cpp:28
void setCreatedOn(bsoncxx::types::b_date _msSinceEpoch)
Definition Project.h:43
int getVersion(void) const
Definition Project.h:54
Project(const Project &)=default
const User & getUser(void) const
Definition Project.h:47
Project & operator=(const Project &)=default
const std::vector< Group > & getGroups(void) const
Definition Project.h:51
bsoncxx::types::b_date getCreatedOn(void) const
Definition Project.h:44