std::list<std::pair<std::string, std::string> > repo::core::RepoUser::getGroupsList() const { mongo::BSONElement arrayElement = getEmbeddedElement(REPO_LABEL_CUSTOM_DATA, REPO_LABEL_GROUPS); return RepoBSON::getArrayStringPairs(arrayElement, REPO_LABEL_OWNER, REPO_LABEL_GROUP); }
std::list<std::pair<std::string, std::string> > repo::core::RepoUser::getAPIKeysList() const { mongo::BSONElement arrayElement = getEmbeddedElement(REPO_LABEL_CUSTOM_DATA, REPO_LABEL_API_KEYS); return RepoBSON::getArrayStringPairs(arrayElement, REPO_LABEL, REPO_LABEL_KEY); }