Class Grantee¶
- 
class 
Grantee¶ - 
Public Functions
- 
Grantee(const std::string &name)¶ 
- 
~Grantee()¶ 
- 
virtual bool 
isUser() const = 0¶ 
- 
void 
updatePrivileges()¶ 
- 
void 
revokeAllOnDatabase(int32_t dbId)¶ 
- 
DBObject *
findDbObject(const DBObjectKey &objectKey, bool only_direct) const¶ 
- 
bool 
hasAnyPrivilegesOnDb(int32_t dbId, bool only_direct) const¶ 
- 
const std::string &
getName() const¶ 
- 
void 
setName(const std::string &name)¶ 
- 
std::vector<std::string> 
getRoles(bool only_direct = true) const¶ 
- 
const DBObjectMap *
getDbObjects(bool only_direct) const¶ 
- 
void 
reassignObjectOwners(const std::set<int32_t> &old_owner_ids, int32_t new_owner_id, int32_t db_id)¶ 
- 
void 
reassignObjectOwner(DBObjectKey &object_key, int32_t new_owner_id)¶ 
Protected Attributes
- 
std::string 
name_¶ 
- 
DBObjectMap 
effectivePrivileges_¶ 
- 
DBObjectMap 
directPrivileges_¶ 
Private Types
- 
using 
DBObjectMap= std::map<DBObjectKey, std::unique_ptr<DBObject>>¶ 
 -