OmniSciDB  5ade3759e0
User Class Reference

#include <Grantee.h>

+ Inheritance diagram for User:
+ Collaboration diagram for User:

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 DBObjectrevokePrivileges (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)
 
DBObjectfindDbObject (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 () const
 
bool hasRole (Role *role, bool only_direct) const
 
const DBObjectMapgetDbObjects (bool only_direct) const
 
void checkCycles (Role *newRole)
 

Additional Inherited Members

- Protected Attributes inherited from Grantee
std::string name_
 
std::unordered_set< Role * > roles_
 
DBObjectMap effectivePrivileges_
 
DBObjectMap directPrivileges_
 

Detailed Description

Definition at line 70 of file Grantee.h.

Constructor & Destructor Documentation

◆ User()

User::User ( const std::string &  name)
inline

Definition at line 72 of file Grantee.h.

72 : Grantee(name) {}
Grantee(const std::string &name)
Definition: Grantee.cpp:23

Member Function Documentation

◆ isUser()

bool User::isUser ( ) const
inlineoverridevirtual

Implements Grantee.

Definition at line 73 of file Grantee.h.

73 { return true; }

The documentation for this class was generated from the following file: