GDBMS 1.0
|
#include <session_mode_commands.h>
Static Public Member Functions | |
static int | CreateUserGroup (int session_USCOREid, std::string group_USCOREname, struct ns1__CreateUserGroupResponse &_param_3) |
Operation CreateUserGroup. | |
static int | DeleteUserGroup (int session_USCOREid, std::string group_USCOREname, struct ns1__DeleteUserGroupResponse &_param_4) |
Operation DeleteUserGroup. | |
static int | GrantRightsToGroup (int session_USCOREid, std::string group_USCOREname, int rights, struct ns1__GrantRightsToGroupResponse &_param_5) |
Operation GrantRightsToGroup. | |
static int | CreateUser (int session_USCOREid, std::string uname, std::string gr_USCOREname, std::string passwd, struct ns1__CreateUserResponse &_param_6) |
Operation CreateUser. | |
static int | DeleteUser (int session_USCOREid, std::string uname, struct ns1__DeleteUserResponse &_param_7) |
Operation DeleteUser. | |
static int | CreateGraph (int session_USCOREid, std::string gr_USCOREname, std::string description, std::string uname, struct ns1__CreateGraphResponse &_param_8) |
Operation CreateGraph. | |
static int | DeleteGraph (int session_USCOREid, std::string gr_USCOREname, struct ns1__DeleteGraphResponse &_param_9) |
Operation DeleteGraph. | |
static int | GrantRightsToGraph (int session_USCOREid, std::string gr_USCOREname, int rights_USCOREword, struct ns1__GrantRightsToGraphResponse &_param_10) |
Operation GrantRightsToGraph. | |
static int | CloseSession (int session_USCOREid, struct ns1__CloseSessionResponse &_param_11) |
Operation CloseSession. | |
static int | GetTransactionId (int session_USCOREid, std::string graph_USCOREname, struct ns1__GetTransactionIdResponse &_param_12) |
Operation GetTransactionId. |
Definition at line 1 of file session_mode_commands.h.
int session_mode_commands::CloseSession | ( | int | session_USCOREid, |
struct ns1__CloseSessionResponse & | _param_11 | ||
) | [static] |
Operation CloseSession.
session_USCOREid | an integer id of the session. |
_param_11 | struct, containing the return value |
This function closes an opened session.
Definition at line 16 of file session_mode_commands.cpp.
int session_mode_commands::CreateGraph | ( | int | session_USCOREid, |
std::string | gr_USCOREname, | ||
std::string | description, | ||
std::string | uname, | ||
struct ns1__CreateGraphResponse & | _param_8 | ||
) | [static] |
Operation CreateGraph.
session_USCOREid | an integer id of the session. |
gr_USCOREname | the name of a graph |
description | description of the graph |
uname | a string representation of username of the user for who the graph is to be created |
_param_8 | struct, containing the return value |
This function creates a graph for a specified user. Only administrator can perform this operation.
Definition at line 38 of file session_mode_commands.cpp.
int session_mode_commands::CreateUser | ( | int | session_USCOREid, |
std::string | uname, | ||
std::string | gr_USCOREname, | ||
std::string | passwd, | ||
struct ns1__CreateUserResponse & | _param_6 | ||
) | [static] |
Operation CreateUser.
session_USCOREid | an integer id of the session. |
uname | a string representation of username |
gr_USCOREname | a string name of the group |
passwd | the password of the user |
_param_6 | struct, containing the return value |
This function creates a user. Only administrator can create a user.
Definition at line 114 of file session_mode_commands.cpp.
int session_mode_commands::CreateUserGroup | ( | int | session_USCOREid, |
std::string | group_USCOREname, | ||
struct ns1__CreateUserGroupResponse & | _param_3 | ||
) | [static] |
Operation CreateUserGroup.
session_USCOREid | an integer id of the session. |
group_USCOREname | a string name of the group to be created |
_param_3 | struct, containing the return value |
This function creates a user group with a specific name.
Definition at line 174 of file session_mode_commands.cpp.
int session_mode_commands::DeleteGraph | ( | int | session_USCOREid, |
std::string | gr_USCOREname, | ||
struct ns1__DeleteGraphResponse & | _param_9 | ||
) | [static] |
Operation DeleteGraph.
session_USCOREid | an integer id of the session. |
gr_USCOREname | the name of a graph |
_param_9 | struct, containing the return value |
This function deletes a graph for a specified user. Only administrator can perform this operation.
Definition at line 225 of file session_mode_commands.cpp.
int session_mode_commands::DeleteUser | ( | int | session_USCOREid, |
std::string | uname, | ||
struct ns1__DeleteUserResponse & | _param_7 | ||
) | [static] |
Operation DeleteUser.
session_USCOREid | an integer id of the session. |
uname | a string representation of username |
_param_7 | struct, containing the return value |
This function deletes a user. Only administrators can delete users.
Definition at line 293 of file session_mode_commands.cpp.
int session_mode_commands::DeleteUserGroup | ( | int | session_USCOREid, |
std::string | group_USCOREname, | ||
struct ns1__DeleteUserGroupResponse & | _param_4 | ||
) | [static] |
Operation DeleteUserGroup.
session_USCOREid | an integer id of the session. |
group_USCOREname | a string name of the group to be deleted |
_param_4 | struct, containing the return value |
This function deletes a user group. Only administrators can delete user groups.
Definition at line 350 of file session_mode_commands.cpp.
int session_mode_commands::GetTransactionId | ( | int | session_USCOREid, |
std::string | graph_USCOREname, | ||
struct ns1__GetTransactionIdResponse & | _param_12 | ||
) | [static] |
Operation GetTransactionId.
session_USCOREid | an integer id of the session. |
graph_USCOREname | the name of the graph. |
_param_12 | struct, containing the return value |
This function opens a transaction for a specified user for a specified graph. Generally all users can open a transaction, but not all of them can perform operations on them.
Definition at line 407 of file session_mode_commands.cpp.
int session_mode_commands::GrantRightsToGraph | ( | int | session_USCOREid, |
std::string | gr_USCOREname, | ||
int | rights_USCOREword, | ||
struct ns1__GrantRightsToGraphResponse & | _param_10 | ||
) | [static] |
Operation GrantRightsToGraph.
session_USCOREid | an integer id of the session. |
gr_USCOREname | the name of a graph |
rights_USCOREword | the rights word. It is 12 digit integer, that specifies the rights that the graph user, the group of the user and all other users acquire. The most significant 4 bits are for the user. The most significant bit is for view operations, the next bit is for insert operations, the next bit is for update operations and the fourth bit is for delete operations. The next group of 4 bits is for the user group and the 3rd group is for all other users. |
_param_10 | struct, containing the return value |
This function grants rights to a specific graph.
Definition at line 521 of file session_mode_commands.cpp.
int session_mode_commands::GrantRightsToGroup | ( | int | session_USCOREid, |
std::string | group_USCOREname, | ||
int | rights, | ||
struct ns1__GrantRightsToGroupResponse & | _param_5 | ||
) | [static] |
Operation GrantRightsToGroup.
session_USCOREid | an integer id of the session. |
group_USCOREname | a string name of the group to be deleted |
rights | integer which specifies if a group is administrative. If set, the group is administrative. |
_param_5 | struct, containing the return value |
This function deletes a user group. Only administrators can delete user groups.
Definition at line 576 of file session_mode_commands.cpp.