22 #include "repo_node.h"
29 #define REPO_NODE_REFERENCE_LABEL_REVISION_ID "_rid"
30 #define REPO_NODE_REFERENCE_LABEL_UNIQUE "unique"
31 #define REPO_NODE_REFERENCE_LABEL_PROJECT "project"
32 #define REPO_NODE_REFERENCE_LABEL_OWNER "owner"
64 return REPO_NODE_TYPE_REFERENCE;
73 return NodeType::REFERENCE;
83 virtual bool sEqual(
const RepoNode &other)
const;
95 if (hasField(REPO_NODE_REFERENCE_LABEL_REVISION_ID))
96 return getUUIDField(REPO_NODE_REFERENCE_LABEL_REVISION_ID);
98 return stringToUUID(REPO_HISTORY_MASTER_BRANCH);
106 return getStringField(REPO_NODE_REFERENCE_LABEL_OWNER);
114 return getStringField(REPO_NODE_REFERENCE_LABEL_PROJECT);
125 bool isUnique =
false;
126 if (hasField(REPO_NODE_REFERENCE_LABEL_UNIQUE))
127 isUnique = getField(REPO_NODE_REFERENCE_LABEL_UNIQUE).boolean();
Definition: repo_node_reference.h:38
Definition: repo_connection_pool_mongo.h:32
repoUUID getRevisionID() const
Definition: repo_node_reference.h:94
virtual std::string getType() const
Definition: repo_node_reference.h:62
std::string getDatabaseName() const
Definition: repo_node_reference.h:105
std::string getProjectName() const
Definition: repo_node_reference.h:113
Definition: repo_node.h:33
virtual NodeType getTypeAsEnum() const
Definition: repo_node_reference.h:71
Definition: repo_bson.h:53
bool useSpecificRevision() const
Definition: repo_node_reference.h:123