GDBMS 1.0
Static Public Member Functions
session_mode_commands Class Reference

#include <session_mode_commands.h>

List of all members.

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.

Detailed Description

Definition at line 1 of file session_mode_commands.h.


Member Function Documentation

int session_mode_commands::CloseSession ( int  session_USCOREid,
struct ns1__CloseSessionResponse _param_11 
) [static]

Operation CloseSession.

Parameters:
session_USCOREidan integer id of the session.
_param_11struct, 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.

Parameters:
session_USCOREidan integer id of the session.
gr_USCOREnamethe name of a graph
descriptiondescription of the graph
unamea string representation of username of the user for who the graph is to be created
_param_8struct, 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.

Parameters:
session_USCOREidan integer id of the session.
unamea string representation of username
gr_USCOREnamea string name of the group
passwdthe password of the user
_param_6struct, 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.

Parameters:
session_USCOREidan integer id of the session.
group_USCOREnamea string name of the group to be created
_param_3struct, 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.

Parameters:
session_USCOREidan integer id of the session.
gr_USCOREnamethe name of a graph
_param_9struct, 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.

Parameters:
session_USCOREidan integer id of the session.
unamea string representation of username
_param_7struct, 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.

Parameters:
session_USCOREidan integer id of the session.
group_USCOREnamea string name of the group to be deleted
_param_4struct, 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.

Parameters:
session_USCOREidan integer id of the session.
graph_USCOREnamethe name of the graph.
_param_12struct, 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.

Parameters:
session_USCOREidan integer id of the session.
gr_USCOREnamethe name of a graph
rights_USCOREwordthe 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_10struct, 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.

Parameters:
session_USCOREidan integer id of the session.
group_USCOREnamea string name of the group to be deleted
rightsinteger which specifies if a group is administrative. If set, the group is administrative.
_param_5struct, 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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines