OmniSciDB
a5dc49c757
|
#include <Grantee.h>
Public Member Functions | |
Role (const std::string &name) | |
~Role () override | |
bool | isUser () const override |
void | updatePrivileges () override |
void | renameDbObject (const DBObject &object) override |
virtual void | addGrantee (Grantee *grantee) |
virtual void | removeGrantee (Grantee *grantee) |
void | revokeAllOnDatabase (int32_t dbId) override |
std::vector< Grantee * > | getGrantees () const |
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 (Role *role) |
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) |
Private Attributes | |
std::unordered_set< Grantee * > | grantees_ |
Additional Inherited Members | |
Protected Attributes inherited from Grantee | |
std::string | name_ |
std::unordered_set< Role * > | roles_ |
DBObjectMap | effectivePrivileges_ |
DBObjectMap | directPrivileges_ |
|
override |
|
virtual |
Definition at line 371 of file Grantee.cpp.
References Grantee::getName(), and grantees_.
Referenced by Grantee::grantRole().
std::vector< Grantee * > Role::getGrantees | ( | ) | const |
Definition at line 389 of file Grantee.cpp.
References grantees_.
Referenced by Grantee::checkCycles().
|
inlineoverridevirtual |
|
virtual |
Definition at line 380 of file Grantee.cpp.
References Grantee::getName(), and grantees_.
Referenced by Grantee::revokeRole().
|
overridevirtual |
Reimplemented from Grantee.
Definition at line 412 of file Grantee.cpp.
References grantees_, and Grantee::renameDbObject().
|
overridevirtual |
Reimplemented from Grantee.
Definition at line 397 of file Grantee.cpp.
References grantees_, and Grantee::revokeAllOnDatabase().
|
overridevirtual |
Reimplemented from Grantee.
Definition at line 405 of file Grantee.cpp.
References grantees_, and Grantee::updatePrivileges().
|
private |
Definition at line 98 of file Grantee.h.
Referenced by addGrantee(), getGrantees(), removeGrantee(), renameDbObject(), revokeAllOnDatabase(), updatePrivileges(), and ~Role().