AfGroup Class Reference

Inherits DataNode.


Detailed Description

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


Public Member Functions

 AfGroup (IntPtr obj)
 From unmanaged object pointer constructor for AfGroup objects.
 AfGroup (string _name, string _description)
 All arguments provided constructor for AfGroup objects.
 AfGroup ()
 Empty attributes constructor for AfGroup objects.
NulData AfUserAdd (int af_user_id)
 Allows to add the given user to the given group.
NulData AfUserRemove (int af_user_id)
 Allows to remove the given user from the given group.
NulData AfUserSet (int af_user_id, bool value_to_set)
 Allows to set/unset the relation between the given user and group.
override NulData Commit ()
 Commits to the database current status of the given object using either new or edit service.
NulData PermissionAdd (int permission_id)
 Allows to set the given permission to the given group.
NulData PermissionRemove (int permission_id)
 Allows to remove the given permission from the given group.
NulData PermissionSet (int permission_id, bool value_to_set)
 Allows to change relation between the given group and permission using value_to_set.
override NulData Remove ()
 Allows to remove a group from the system.

Static Public Member Functions

static NulData AfUserAdd (int af_group_id, int af_user_id)
 Allows to add the given user to the given group.
static SimpleData AfUserNumElements (int af_user_id)
 Allows to get how many groups have the given user inside them.
static NulData AfUserRemove (int af_group_id, int af_user_id)
 Allows to remove the given user from the given group.
static NulData AfUserSet (int af_group_id, int af_user_id, bool value_to_set)
 Allows to set/unset the relation between the given user and group.
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 group list.
static SimpleData NumElement ()
 Allows to get how many groups are created.
static NulData PermissionAdd (int af_group_id, int permission_id)
 Allows to set the given permission to the given group.
static SimpleData PermissionNumElements (int permission_id)
 Allows to get how many groups have the given permission.
static NulData PermissionRemove (int af_group_id, int permission_id)
 Allows to remove the given permission from the given group.
static NulData PermissionSet (int af_group_id, int permission_id, bool value_to_set)
 Allows to change relation between the given group and permission using value_to_set.
static NulData Remove (int id)
 Allows to remove a group from the system.

Data Fields

string Description
 A group description containing information about its purpose or type of users.
string Name
 The group name.