OmniSciDB
a5dc49c757
|
#include <Grantee.h>
Public Member Functions | |
User (const std::string &name) | |
bool | isUser () const override |
Public Member Functions inherited from Grantee | |
Grantee (const std::string &name) | |
virtual | ~Grantee () |
virtual void | grantPrivileges (const DBObject &object) |
virtual DBObject * | revokePrivileges (const DBObject &object) |
virtual void | grantRole (Role *role) |
virtual void | revokeRole (Role *role) |
virtual bool | hasAnyPrivileges (const DBObject &objectRequested, bool only_direct) const |
virtual bool | checkPrivileges (const DBObject &objectRequested) const |
virtual void | updatePrivileges () |
virtual void | updatePrivileges (Role *role) |
virtual void | revokeAllOnDatabase (int32_t dbId) |
virtual void | renameDbObject (const DBObject &object) |
void | getPrivileges (DBObject &object, bool only_direct) |
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 |
bool | hasRole (Role *role, bool only_direct) const |
const DBObjectMap * | getDbObjects (bool only_direct) const |
void | checkCycles (Role *newRole) |
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) |
Additional Inherited Members | |
Protected Attributes inherited from Grantee | |
std::string | name_ |
std::unordered_set< Role * > | roles_ |
DBObjectMap | effectivePrivileges_ |
DBObjectMap | directPrivileges_ |
|
inlineoverridevirtual |