#include <roles.h>
◆ Role_activation() [1/3]
Constructor.
- Parameters
-
[in] | thd | THD handle |
[in] | sctx | Security context handle |
[in] | type | Role activation type |
[in] | role_list | List of roles - depends on type |
[in] | raise_error | Flag to raise error |
◆ Role_activation() [2/3]
◆ Role_activation() [3/3]
◆ ~Role_activation()
Roles::Role_activation::~Role_activation |
( |
| ) |
|
|
inline |
◆ activate()
bool Roles::Role_activation::activate |
( |
| ) |
|
Activate roles for given session.
- Returns
- status of role activation
- Return values
-
false | Success |
true | Failure. Error is raised. |
◆ activate_role_all()
bool Roles::Role_activation::activate_role_all |
( |
| ) |
|
|
private |
Activate all granted roles - except those specified through m_role_list.
- Returns
- Operation status
- Return values
-
◆ activate_role_default()
bool Roles::Role_activation::activate_role_default |
( |
| ) |
|
|
private |
Activate default roles for current session.
- Returns
- Operation status
- Return values
-
◆ activate_role_name()
bool Roles::Role_activation::activate_role_name |
( |
| ) |
|
|
private |
Activate roles available through m_role_list.
- Returns
- Operation status
- Return values
-
◆ activate_role_none()
bool Roles::Role_activation::activate_role_none |
( |
| ) |
|
|
private |
Deactivate all roles for current session.
- Returns
- Operation status
- Return values
-
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ m_raise_error
bool Roles::Role_activation::m_raise_error |
|
private |
◆ m_role_list
◆ m_sctx
◆ m_thd
THD* Roles::Role_activation::m_thd |
|
private |
◆ m_type
◆ m_valid
bool Roles::Role_activation::m_valid |
|
private |
The documentation for this class was generated from the following files: