OmniSciDB
a5dc49c757
|
#include <SysCatalog.h>
Public Member Functions | |
UserMetadata (int32_t u, const std::string &n, const std::string &p, bool s, int32_t d, bool l, bool t) | |
UserMetadata () | |
UserMetadata (UserMetadata const &user_meta) | |
UserMetadata & | operator= (UserMetadata const &user_meta) |
std::string | userLoggable () const |
Public Attributes | |
int32_t | userId {-1} |
std::string | userName |
std::string | passwd_hash |
std::atomic< bool > | isSuper {false} |
int32_t | defaultDbId {-1} |
bool | can_login {true} |
bool | is_temporary {false} |
Definition at line 68 of file SysCatalog.h.
|
inline |
Definition at line 69 of file SysCatalog.h.
|
inline |
Definition at line 83 of file SysCatalog.h.
|
inline |
Definition at line 84 of file SysCatalog.h.
|
inline |
Definition at line 92 of file SysCatalog.h.
References can_login, defaultDbId, is_temporary, isSuper, passwd_hash, userId, and userName.
std::string Catalog_Namespace::UserMetadata::userLoggable | ( | ) | const |
Definition at line 158 of file SysCatalog.cpp.
References Catalog_Namespace::g_log_user_id, and to_string().
Referenced by anonymous_namespace{Calcite.cpp}::checkPermissionForTables(), Catalog_Namespace::SysCatalog::checkPrivileges(), DBHandler::clone_session(), DBHandler::connect(), DBHandler::connect_impl(), Catalog_Namespace::SysCatalog::createDBObject(), Catalog_Namespace::SysCatalog::createUser(), Parser::TruncateTableStmt::execute(), Parser::CopyTableStmt::execute(), Catalog_Namespace::SysCatalog::hasAnyPrivileges(), DBHandler::internal_connect(), DBHandler::interruptQuery(), query_state::operator<<(), Catalog_Namespace::parseUserMetadataFromSQLite(), DBHandler::set_execution_mode_nolock(), and Catalog_Namespace::SysCatalog::switchDatabase().
bool Catalog_Namespace::UserMetadata::can_login {true} |
Definition at line 109 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::alterUser(), Catalog_Namespace::SysCatalog::login(), operator=(), Catalog_Namespace::parseUserMetadataFromSQLite(), and Catalog_Namespace::UserAlterations::wouldChange().
int32_t Catalog_Namespace::UserMetadata::defaultDbId {-1} |
Definition at line 108 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::alterUser(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), operator=(), Catalog_Namespace::parseUserMetadataFromSQLite(), and Catalog_Namespace::UserAlterations::wouldChange().
bool Catalog_Namespace::UserMetadata::is_temporary {false} |
Definition at line 110 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::alterUser(), Catalog_Namespace::SysCatalog::dropUserUnchecked(), Catalog_Namespace::SysCatalog::grantDBObjectPrivileges_unsafe(), Catalog_Namespace::SysCatalog::grantRoleBatch_unsafe(), operator=(), heavydb.thrift.ttypes.TTableDetails::read(), Catalog_Namespace::SysCatalog::revokeDBObjectPrivileges_unsafe(), Catalog_Namespace::SysCatalog::revokeRoleBatch_unsafe(), Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership(), and heavydb.thrift.ttypes.TTableDetails::write().
std::atomic<bool> Catalog_Namespace::UserMetadata::isSuper {false} |
Definition at line 107 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::alterUser(), Parser::check_alter_table_privilege(), Catalog_Namespace::SysCatalog::checkPrivileges(), Catalog_Namespace::SysCatalog::createDBObject(), ShowRolesCommand::execute(), Parser::RenameDBStmt::execute(), Parser::RenameUserStmt::execute(), Parser::CreateDBStmt::execute(), Parser::DropDBStmt::execute(), Parser::CreateUserStmt::execute(), Parser::AlterUserStmt::execute(), Parser::DropUserStmt::execute(), DBHandler::get_valid_groups(), Catalog_Namespace::SysCatalog::getDBObjectPrivileges(), Catalog_Namespace::SysCatalog::grantDBObjectPrivileges_unsafe(), DBHandler::has_object_privilege(), Catalog_Namespace::SysCatalog::hasAnyPrivileges(), DBHandler::interruptQuery(), operator=(), Catalog_Namespace::parseUserMetadataFromSQLite(), QueryRunner::QueryRunner::QueryRunner(), Catalog_Namespace::SysCatalog::reassignObjectOwners(), Catalog_Namespace::SysCatalog::revokeDBObjectPrivileges_unsafe(), Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership(), DBHandler::validateDashboardIdsForSharing(), and Catalog_Namespace::UserAlterations::wouldChange().
std::string Catalog_Namespace::UserMetadata::passwd_hash |
Definition at line 106 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::alterUser(), Catalog_Namespace::SysCatalog::checkPasswordForUserImpl(), operator=(), Catalog_Namespace::parseUserMetadataFromSQLite(), QueryRunner::QueryRunner::QueryRunner(), and Catalog_Namespace::UserAlterations::wouldChange().
int32_t Catalog_Namespace::UserMetadata::userId {-1} |
Definition at line 104 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::alterUser(), AlterForeignServerCommand::changeForeignServerOwner(), Parser::check_alter_table_privilege(), Catalog_Namespace::SysCatalog::createDBObject(), Catalog_Namespace::SysCatalog::dropUser(), Catalog_Namespace::SysCatalog::dropUserUnchecked(), ShowRolesCommand::execute(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::RenameDBStmt::execute(), Parser::CreateViewStmt::execute(), Parser::CreateDBStmt::execute(), Parser::DropDBStmt::execute(), Parser::AlterUserStmt::execute(), DBHandler::get_dashboard_grantees(), Catalog_Namespace::SysCatalog::getDatabaseListForUser(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), operator=(), Catalog_Namespace::parseUserMetadataFromSQLite(), QueryRunner::QueryRunner::QueryRunner(), DBHandler::replace_dashboard(), Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::validate_and_get_user_id(), DBHandler::validateDashboardIdsForSharing(), and Catalog_Namespace::SysCatalog::verifyDBObjectOwnership().
std::string Catalog_Namespace::UserMetadata::userName |
Definition at line 105 of file SysCatalog.h.
Referenced by Catalog_Namespace::SysCatalog::buildMapsUnlocked(), Catalog_Namespace::SysCatalog::checkPrivileges(), Catalog_Namespace::SysCatalog::createDatabase(), Catalog_Namespace::SysCatalog::createDBObject(), DBHandler::get_dashboard(), DBHandler::get_dashboard_grantees(), DBHandler::get_dashboard_impl(), DBHandler::get_dashboards(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_user_name(), Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::get_users(), Calcite::getCompletionHints(), Catalog_Namespace::SysCatalog::getDatabaseListForUser(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), Catalog_Namespace::SysCatalog::hasAnyPrivileges(), DBHandler::interruptQuery(), operator=(), Catalog_Namespace::parseUserMetadataFromSQLite(), Catalog_Namespace::SysCatalog::populateRoleDbObjects(), heavydb.thrift.Heavy.get_all_roles_for_user_args::read(), heavydb.thrift.Heavy.get_all_effective_roles_for_user_args::read(), Catalog_Namespace::SysCatalog::reassignObjectOwners(), Catalog_Namespace::SysCatalog::runUpdateQueriesAndChangeOwnership(), Catalog_Namespace::SysCatalog::verifyDBObjectOwnership(), heavydb.thrift.Heavy.get_all_roles_for_user_args::write(), and heavydb.thrift.Heavy.get_all_effective_roles_for_user_args::write().