OmniSciDB
a5dc49c757
|
#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 132 of file DBObject.h.
|
inline |
Definition at line 135 of file DBObject.h.
|
inline |
Definition at line 137 of file DBObject.h.
|
inline |
Definition at line 145 of file DBObject.h.
References privileges.
Referenced by DBHandler::shareOrUnshareDashboards().
|
inline |
Definition at line 140 of file DBObject.h.
References privileges.
Referenced by anonymous_namespace{Calcite.cpp}::checkPermissionForTables(), and hasAnyPrivs().
|
inline |
Definition at line 141 of file DBObject.h.
References privileges.
Referenced by Parser::ShowPrivilegesStmt::execute(), DBHandler::get_dashboard_impl(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), 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 139 of file DBObject.h.
References privileges.
Referenced by DBObject::resetPrivileges().
|
static |
Definition at line 153 of file DBObject.h.
Referenced by anonymous_namespace{Calcite.cpp}::check_db_access(), DBHandler::connect(), ShowUserDetailsCommand::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), 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 169 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::createDBObject(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::reassignOwners(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), Catalog_Namespace::SysCatalog::revokeDBObjectPrivilegesFromAll_unsafe(), and Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership().
|
static |
Definition at line 168 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
|
static |
Definition at line 151 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::createDBObject(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), and Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership().
|
static |
Definition at line 187 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::createDBObject(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::reassignOwners(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), and Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership().
|
static |
Definition at line 157 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::createDBObject(), DBHandler::get_db_object_privs(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::reassignOwners(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), Catalog_Namespace::SysCatalog::revokeDBObjectPrivilegesFromAll_unsafe(), and Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership().
|
static |
Definition at line 156 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
|
static |
Definition at line 177 of file DBObject.h.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Parser::parseStringPrivs(), Catalog_Namespace::Catalog::reassignOwners(), Catalog_Namespace::Catalog::recordOwnershipOfObjectsInObjectPermissions(), and Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership().
|
static |
Definition at line 176 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
|
static |
Definition at line 190 of file DBObject.h.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), AlterForeignServerCommand::hasAlterServerPrivileges(), and Parser::parseStringPrivs().
|
static |
Definition at line 165 of file DBObject.h.
Referenced by Parser::check_alter_table_privilege(), AlterForeignTableCommand::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 170 of file DBObject.h.
Referenced by DBHandler::create_dashboard(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 188 of file DBObject.h.
Referenced by CreateForeignServerCommand::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 158 of file DBObject.h.
Referenced by CreateForeignTableCommand::execute(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::DumpTableStmt::execute(), Parser::RestoreTableStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 178 of file DBObject.h.
Referenced by Parser::CreateViewStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 173 of file DBObject.h.
Referenced by Catalog_Namespace::Catalog::deleteMetadataForDashboards(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 163 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), Parser::OptimizeTableStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 183 of file DBObject.h.
|
static |
Definition at line 189 of file DBObject.h.
Referenced by DropForeignServerCommand::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 159 of file DBObject.h.
Referenced by DropForeignTableCommand::execute(), Parser::DropTableStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 179 of file DBObject.h.
Referenced by Parser::DropViewStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 172 of file DBObject.h.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), DBHandler::replace_dashboard(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 161 of file DBObject.h.
Referenced by DBHandler::check_table_load_privileges(), Calcite::checkAccessedObjectsPrivileges(), Parser::CopyTableStmt::execute(), Parser::InsertValuesStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), and Parser::InsertIntoTableAsSelectStmt::populateData().
|
static |
Definition at line 181 of file DBObject.h.
|
static |
Definition at line 148 of file DBObject.h.
Referenced by Catalog_Namespace::SysCatalog::migratePrivileges().
int64_t AccessPrivileges::privileges |
Definition at line 133 of file DBObject.h.
Referenced by add(), Catalog_Namespace::SysCatalog::buildRoleMapUnlocked(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), hasAny(), hasEnoughPrivs(), hasPermission(), remove(), reset(), DBObject::revokePrivileges(), and DBObject::updatePrivileges().
|
static |
Definition at line 160 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), Parser::DumpTableStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::Catalog::getCustomExpressionsForUser(), Catalog_Namespace::Catalog::parseDashboardObjects(), and Parser::parseStringPrivs().
|
static |
Definition at line 180 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::Catalog::parseDashboardObjects(), and Parser::parseStringPrivs().
|
static |
Definition at line 191 of file DBObject.h.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), and CreateForeignTableCommand::setTableDetails().
|
static |
Definition at line 164 of file DBObject.h.
Referenced by Parser::TruncateTableStmt::execute(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 184 of file DBObject.h.
|
static |
Definition at line 162 of file DBObject.h.
Referenced by Calcite::checkAccessedObjectsPrivileges(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), and Parser::parseStringPrivs().
|
static |
Definition at line 182 of file DBObject.h.
|
static |
Definition at line 171 of file DBObject.h.
Referenced by DBHandler::get_dashboard(), DBHandler::get_dashboards(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Parser::parseStringPrivs(), and DBHandler::shareOrUnshareDashboards().
|
static |
Definition at line 152 of file DBObject.h.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), Catalog_Namespace::SysCatalog::grantAllOnDatabase_unsafe(), Catalog_Namespace::SysCatalog::migrateDBAccessPrivileges(), and Parser::parseStringPrivs().