Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
Role manager interface. More...
Classes | |
struct | ArgumentDesc |
Privilege Argument Description. More... | |
struct | Info |
Full role manager information. More... | |
struct | PrivilegeDesc |
Privilege Description. More... | |
struct | RoleAccount |
Role information. More... | |
Public Member Functions | |
int | createRoleFull (in string name, in Role::Info info) |
Create new role with full information. | |
int | deleteRole (in string name) |
Delete a role. | |
vector< string > | getAllRoleNames () |
Retrieve a list of role names. | |
vector< RoleAccount > | getAllRoles () |
Retrieve a list of active roles. | |
vector< PrivilegeDesc > | getAllPrivileges () |
Retrieve a list of supported privileges. | |
Info | getInfo () |
Retrieve full role manager information. | |
Public Attributes | |
constant int | ERR_ROLE_ALREADY_EXISTS = 1 |
A role with that name already exists. | |
constant int | ERR_MAX_ROLES_REACHED = 2 |
Maximum number of roles reached. | |
constant int | ERR_INVALID_VALUE = 3 |
Invalid arguments. | |
constant int | ERR_ROLE_DOESNT_EXIST = 1 |
The role does not exist. | |
constant int | ERR_ROLE_NOT_DELETABLE = 2 |
The role cannot be deleted. | |
Role manager interface.
Definition at line 32 of file RoleManager.idl.
int usermgmt::RoleManager::createRoleFull | ( | in string | name, |
in Role::Info | info | ||
) |
Create new role with full information.
name | New role name |
info | New role information |
int usermgmt::RoleManager::deleteRole | ( | in string | name | ) |
Delete a role.
name | Name of the role to delete |
vector< PrivilegeDesc > usermgmt::RoleManager::getAllPrivileges | ( | ) |
Retrieve a list of supported privileges.
vector< string > usermgmt::RoleManager::getAllRoleNames | ( | ) |
Retrieve a list of role names.
vector< RoleAccount > usermgmt::RoleManager::getAllRoles | ( | ) |
Retrieve a list of active roles.
Info usermgmt::RoleManager::getInfo | ( | ) |
Retrieve full role manager information.
constant int usermgmt::RoleManager::ERR_INVALID_VALUE = 3 |
Invalid arguments.
Definition at line 36 of file RoleManager.idl.
constant int usermgmt::RoleManager::ERR_MAX_ROLES_REACHED = 2 |
Maximum number of roles reached.
Definition at line 35 of file RoleManager.idl.
constant int usermgmt::RoleManager::ERR_ROLE_ALREADY_EXISTS = 1 |
A role with that name already exists.
Definition at line 34 of file RoleManager.idl.
constant int usermgmt::RoleManager::ERR_ROLE_DOESNT_EXIST = 1 |
The role does not exist.
Definition at line 38 of file RoleManager.idl.
constant int usermgmt::RoleManager::ERR_ROLE_NOT_DELETABLE = 2 |
The role cannot be deleted.
Definition at line 39 of file RoleManager.idl.