OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 (bool only_direct=true) const
bool hasRole (Role *role, bool only_direct) const
const DBObjectMapgetDbObjects (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_

Detailed Description

Definition at line 75 of file Grantee.h.

Constructor & Destructor Documentation

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

Definition at line 77 of file Grantee.h.

77 : Grantee(name) {}
Grantee(const std::string &name)
Definition: Grantee.cpp:26
string name

Member Function Documentation

bool User::isUser ( ) const

Implements Grantee.

Definition at line 78 of file Grantee.h.

78 { return true; }

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