Permission Class Reference

Inherits DataNode.


Detailed Description

.NET C# bindings for services exported by module permission.


Public Member Functions

NulData AfGroupAdd (int af_group_id)
 Allows to set the given permission to the given group.
NulData AfGroupRemove (int af_group_id)
 Allows to unset the given permission from the given group.
NulData AfGroupSet (int af_group_id, bool value_to_set)
 Allows to change relation between the given group and permission using value_to_set.
NulData AfUserAdd (int af_user_id)
 Allows to set the given permission to the given user.
NulData AfUserRemove (int af_user_id)
 Allows to remove the given permission to the given user.
NulData AfUserSet (int af_user_id, bool value_to_set)
 Allows to set/unset the given permission to the given user according to value_to_set.
 Permission (IntPtr obj)
 From unmanaged object pointer constructor for Permission objects.
 Permission (string _name, string _description, string _depends, int _server_id)
 All arguments provided constructor for Permission objects.
 Permission ()
 Empty attributes constructor for Permission objects.
NulData PermissionAdd (int permission_id_self)
 Allows to set the given permission defined by permission_id to the given permission defined by permission_id_self.
NulData PermissionRemove (int permission_id_self)
 Allows to remove the relation between the given permissions.
NulData PermissionSet (int permission_id_self, bool value_to_set)
 Allows the modify the relation between the given permissions according to value_to_set.
override NulData Remove ()
 Allows to remove a permission from the system.

Static Public Member Functions

static NulData AfGroupAdd (int permission_id, int af_group_id)
 Allows to set the given permission to the given group.
static SimpleData AfGroupNumElements (int af_group_id)
 Allows to get how many permission have set the given group.
static NulData AfGroupRemove (int permission_id, int af_group_id)
 Allows to unset the given permission from the given group.
static NulData AfGroupSet (int permission_id, int af_group_id, bool value_to_set)
 Allows to change relation between the given group and permission using value_to_set.
static NulData AfUserAdd (int permission_id, int af_user_id)
 Allows to set the given permission to the given user.
static SimpleData AfUserNumElements (int af_user_id)
 Allows to get how many permission the given user have.
static NulData AfUserRemove (int permission_id, int af_user_id)
 Allows to remove the given permission to the given user.
static NulData AfUserSet (int permission_id, int af_user_id, bool value_to_set)
 Allows to set/unset the given permission to the given user according to value_to_set.
new static int GetAttributePosition (string attribute)
 Allows to get current position for a given attribute inside the class.
static AfDalList GetList (int initial, int max_row_number)
 Allows to get current permission list handled by Af-Arch af-kernel central server.
static SimpleData NumElement ()
 Allows to get how many permissions are installed on the system (are available).
static NulData PermissionAdd (int permission_id, int permission_id_self)
 Allows to set the given permission defined by permission_id to the given permission defined by permission_id_self.
static SimpleData PermissionNumElements (int permission_id)
 Allows to get current number of permission relationed to the given permission.
static NulData PermissionRemove (int permission_id, int permission_id_self)
 Allows to remove the relation between the given permissions.
static NulData PermissionSet (int permission_id, int permission_id_self, bool value_to_set)
 Allows the modify the relation between the given permissions according to value_to_set.
static NulData Remove (int id)
 Allows to remove a permission from the system.
static SimpleData ServerNumElements (int server_id)
 Allows to get the number of permissions already installed on the system which are provided by the given server.

Data Fields

string Depends
 Which permission the given permission depends on.
string Description
 Permission long description.
string Name
 Permission name.
int ServerId
 Server unique identifier which provides the service this permission represent.