OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catalog_Namespace::UserMetadata Struct Reference

#include <SysCatalog.h>

+ Collaboration diagram for Catalog_Namespace::UserMetadata:

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)
 
UserMetadataoperator= (UserMetadata const &user_meta)
 
std::string userLoggable () const
 
void setRestriction (Restriction in_restriction)
 

Public Attributes

int32_t userId
 
std::string userName
 
std::string passwd_hash
 
std::atomic< bool > isSuper {false}
 
int32_t defaultDbId
 
bool can_login {true}
 
bool is_temporary {false}
 
Restriction restriction
 

Detailed Description

Definition at line 78 of file SysCatalog.h.

Constructor & Destructor Documentation

Catalog_Namespace::UserMetadata::UserMetadata ( int32_t  u,
const std::string &  n,
const std::string &  p,
bool  s,
int32_t  d,
bool  l,
bool  t 
)
inline

Definition at line 79 of file SysCatalog.h.

Catalog_Namespace::UserMetadata::UserMetadata ( )
inline

Definition at line 93 of file SysCatalog.h.

93 {}
Catalog_Namespace::UserMetadata::UserMetadata ( UserMetadata const user_meta)
inline

Definition at line 94 of file SysCatalog.h.

References restriction.

95  : UserMetadata(user_meta.userId,
96  user_meta.userName,
97  user_meta.passwd_hash,
98  user_meta.isSuper.load(),
99  user_meta.defaultDbId,
100  user_meta.can_login,
101  user_meta.is_temporary) {
102  restriction = user_meta.restriction;
103  }

Member Function Documentation

UserMetadata& Catalog_Namespace::UserMetadata::operator= ( UserMetadata const user_meta)
inline

Definition at line 104 of file SysCatalog.h.

References can_login, defaultDbId, is_temporary, isSuper, passwd_hash, restriction, userId, and userName.

104  {
105  if (this != &user_meta) {
106  userId = user_meta.userId;
107  userName = user_meta.userName;
108  passwd_hash = user_meta.passwd_hash;
109  isSuper.store(user_meta.isSuper.load());
110  defaultDbId = user_meta.defaultDbId;
111  can_login = user_meta.can_login;
112  is_temporary = user_meta.is_temporary;
113  restriction = user_meta.restriction;
114  }
115  return *this;
116  }
std::atomic< bool > isSuper
Definition: SysCatalog.h:120
void Catalog_Namespace::UserMetadata::setRestriction ( Restriction  in_restriction)
inline

Definition at line 129 of file SysCatalog.h.

References restriction.

129 { restriction = in_restriction; }
std::string Catalog_Namespace::UserMetadata::userLoggable ( ) const

Definition at line 127 of file SysCatalog.cpp.

References Catalog_Namespace::g_log_user_id, and to_string().

Referenced by checkPermissionForTables(), Catalog_Namespace::SysCatalog::checkPrivileges(), DBHandler::connect(), DBHandler::create_new_session(), 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().

127  {
129 }
std::string to_string(char const *&&v)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool Catalog_Namespace::UserMetadata::can_login {true}
Restriction Catalog_Namespace::UserMetadata::restriction

Definition at line 124 of file SysCatalog.h.

Referenced by DBHandler::connect(), operator=(), setRestriction(), and UserMetadata().


The documentation for this struct was generated from the following files: