OmniSciDB
94e8789169
|
#include <DBObject.h>
Public Member Functions | |
AccessPrivileges () | |
AccessPrivileges (int64_t priv) | |
void | reset () |
bool | hasAny () const |
bool | hasPermission (int permission) const |
void | add (AccessPrivileges newprivs) |
void | remove (AccessPrivileges newprivs) |
Public Attributes | |
int64_t | privileges |
Definition at line 133 of file DBObject.h.
|
inline |
Definition at line 136 of file DBObject.h.
|
inline |
Definition at line 138 of file DBObject.h.
|
inline |
Definition at line 146 of file DBObject.h.
References privileges.
Referenced by DBHandler::shareOrUnshareDashboards().
|
inline |
Definition at line 141 of file DBObject.h.
References privileges.
Referenced by checkPermissionForTables(), and hasAnyPrivs().
|
inline |
Definition at line 142 of file DBObject.h.
References privileges.
Referenced by Parser::ShowPrivilegesStmt::execute(), DBHandler::get_dashboard_impl(), DBHandler::has_dashboard_permission(), DBHandler::has_database_permission(), DBHandler::has_server_permission(), DBHandler::has_table_permission(), and DBHandler::has_view_permission().
|
inline |
|
inline |
Definition at line 140 of file DBObject.h.
References privileges.
Referenced by DBObject::resetPrivileges().
|
static |
Definition at line 154 of file DBObject.h.
Referenced by DBHandler::connect(), Catalog_Namespace::SysCatalog::getDatabaseListForUser(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), DBHandler::internal_connect(), Catalog_Namespace::SysCatalog::migrateDBAccessPrivileges(), Parser::parseStringPrivs(), and Catalog_Namespace::SysCatalog::switchDatabase().
|
static |
Definition at line 170 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), Catalog_Namespace::SysCatalog::createDBObject(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), and Catalog_Namespace::SysCatalog::revokeDBObjectPrivilegesFromAll_unsafe().
|
static |
Definition at line 169 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
|
static |
Definition at line 152 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), Catalog_Namespace::SysCatalog::createDBObject(), Parser::parseStringPrivs(), and Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions().
|
static |
Definition at line 188 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), Catalog_Namespace::SysCatalog::createDBObject(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), and Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions().
|
static |
Definition at line 158 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::changeDBObjectOwnership(), Catalog_Namespace::SysCatalog::createDBObject(), DBHandler::get_db_object_privs(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), and Catalog_Namespace::SysCatalog::revokeDBObjectPrivilegesFromAll_unsafe().
|
static |
Definition at line 157 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
|
static |
|
static |
Definition at line 177 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
|
static |
Definition at line 191 of file DBObject.h.
Referenced by AlterForeignServerCommand::hasAlterServerPrivileges(), and Parser::parseStringPrivs().
|
static |
Definition at line 166 of file DBObject.h.
Referenced by Parser::check_alter_table_privilege(), AlterForeignTableCommand::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 171 of file DBObject.h.
Referenced by DBHandler::create_dashboard(), Parser::parseStringPrivs(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 189 of file DBObject.h.
Referenced by CreateForeignServerCommand::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 159 of file DBObject.h.
Referenced by CreateForeignTableCommand::execute(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::DumpTableStmt::execute(), Parser::RestoreTableStmt::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 179 of file DBObject.h.
Referenced by Parser::CreateViewStmt::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 174 of file DBObject.h.
Referenced by Catalog_Namespace::Catalog::deleteMetadataForDashboards(), Parser::parseStringPrivs(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 164 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), Parser::parseStringPrivs(), and DBHandler::sql_execute_impl().
|
static |
Definition at line 184 of file DBObject.h.
|
static |
Definition at line 190 of file DBObject.h.
Referenced by DropForeignServerCommand::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 160 of file DBObject.h.
Referenced by DropForeignTableCommand::execute(), Parser::DropTableStmt::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 180 of file DBObject.h.
Referenced by Parser::DropViewStmt::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 173 of file DBObject.h.
Referenced by Parser::parseStringPrivs(), DBHandler::replace_dashboard(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 162 of file DBObject.h.
Referenced by DBHandler::check_table_load_privileges(), Calcite::checkAccessedObjectsPrivileges(), Parser::CopyTableStmt::execute(), Parser::InsertValuesStmt::execute(), Parser::parseStringPrivs(), and Parser::InsertIntoTableAsSelectStmt::populateData().
|
static |
Definition at line 182 of file DBObject.h.
|
static |
Definition at line 149 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
int64_t AccessPrivileges::privileges |
Definition at line 134 of file DBObject.h.
Referenced by add(), Catalog_Namespace::SysCatalog::buildObjectDescriptorMap(), Catalog_Namespace::SysCatalog::buildRoleMap(), hasAny(), hasEnoughPrivs(), hasPermission(), remove(), reset(), DBObject::revokePrivileges(), and DBObject::updatePrivileges().
|
static |
Definition at line 161 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), Parser::DumpTableStmt::execute(), Catalog_Namespace::Catalog::parseDashboardObjects(), and Parser::parseStringPrivs().
|
static |
Definition at line 181 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), Catalog_Namespace::Catalog::parseDashboardObjects(), and Parser::parseStringPrivs().
|
static |
Definition at line 165 of file DBObject.h.
Referenced by Parser::TruncateTableStmt::execute(), and Parser::parseStringPrivs().
|
static |
Definition at line 185 of file DBObject.h.
|
static |
Definition at line 163 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), and Parser::parseStringPrivs().
|
static |
Definition at line 183 of file DBObject.h.
|
static |
Definition at line 172 of file DBObject.h.
Referenced by DBHandler::get_dashboard(), DBHandler::get_dashboards(), Parser::parseStringPrivs(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 153 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Catalog_Namespace::SysCatalog::migrateDBAccessPrivileges(), and Parser::parseStringPrivs().