AgsBusinessGroup

AgsBusinessGroup — base group permissions

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsBusinessGroup

Known Implementations

AgsBusinessGroup is implemented by AgsXmlBusinessGroup.

Includes

#include <ags/server/security/ags_business_group.h>

Description

The AgsBusinessGroup interface gives you base group permissions.

Functions

ags_business_group_get_group_uuid ()

gchar **
ags_business_group_get_group_uuid (AgsBusinessGroup *business_group,
                                   GObject *security_context,
                                   gchar *user_uuid,
                                   gchar *security_token,
                                   GError **error);

Get group UUID as string vector.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

user_uuid

the users unique identifier

 

security_token

the security token

 

error

the GError

 

Returns

the group UUIDs as NULL terminated string array.

[element-type utf8][array zero-terminated=1][transfer full]

Since: 3.0.0


ags_business_group_set_group_name ()

void
ags_business_group_set_group_name (AgsBusinessGroup *business_group,
                                   GObject *security_context,
                                   gchar *user_uuid,
                                   gchar *security_token,
                                   gchar *group_uuid,
                                   gchar *group_name,
                                   GError **error);

Set business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

user_uuid

the user's UUID

 

security_token

the security token

 

group_uuid

the group's UUID

 

group_name

the business group's name to set

 

error

the GError

 

Since: 3.0.0


ags_business_group_get_group_name ()

gchar *
ags_business_group_get_group_name (AgsBusinessGroup *business_group,
                                   GObject *security_context,
                                   gchar *user_uuid,
                                   gchar *security_token,
                                   gchar *group_uuid,
                                   GError **error);

Get business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

user_uuid

the user's UUID

 

security_token

the security token

 

group_uuid

the group's UUID

 

error

the GError

 

Returns

the business group's name as string

Since: 3.0.0


ags_business_group_set_user ()

void
ags_business_group_set_user (AgsBusinessGroup *business_group,
                             GObject *security_context,
                             gchar *user_uuid,
                             gchar *security_token,
                             gchar *group_uuid,
                             gchar **user,
                             GError **error);

Set business group of user names as NULL terminated string array.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

user_uuid

the user's UUID

 

security_token

the security token

 

group_uuid

the business group's UUID

 

user

the string array containing user names.

[element-type utf8][array zero-terminated=1]

error

the GError

 

Since: 3.0.0


ags_business_group_get_user ()

gchar **
ags_business_group_get_user (AgsBusinessGroup *business_group,
                             GObject *security_context,
                             gchar *user_uuid,
                             gchar *security_token,
                             gchar *group_uuid,
                             GError **error);

Get business group name as NULL terminated string array.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

user_uuid

the user's UUID

 

security_token

the security token

 

group_uuid

the business group's UUID

 

error

the GError

 

Returns

the business group's user names as string vector.

[element-type utf8][array zero-terminated=1][transfer full]

Since: 3.0.0


AGS_BUSINESS_GROUP()

#define AGS_BUSINESS_GROUP(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUSINESS_GROUP, AgsBusinessGroup))

AGS_BUSINESS_GROUP_GET_INTERFACE()

#define AGS_BUSINESS_GROUP_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_BUSINESS_GROUP, AgsBusinessGroupInterface))

AGS_BUSINESS_GROUP_INTERFACE()

#define AGS_BUSINESS_GROUP_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_BUSINESS_GROUP, AgsBusinessGroupInterface))

AGS_IS_BUSINESS_GROUP()

#define AGS_IS_BUSINESS_GROUP(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_BUSINESS_GROUP))

AGS_IS_BUSINESS_GROUP_INTERFACE()

#define AGS_IS_BUSINESS_GROUP_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_BUSINESS_GROUP))

ags_business_group_get_type ()

GType
ags_business_group_get_type ();

Types and Values

AGS_TYPE_BUSINESS_GROUP

#define AGS_TYPE_BUSINESS_GROUP                    (ags_business_group_get_type())

AgsBusinessGroup

typedef struct _AgsBusinessGroup AgsBusinessGroup;

struct AgsBusinessGroupInterface

struct AgsBusinessGroupInterface {
  GTypeInterface ginterface;

  gchar** (*get_group_uuid)(AgsBusinessGroup *business_group,
			    GObject *security_context,
			    gchar *user_uuid,
			    gchar *security_token,
			    GError **error);

  void (*set_group_name)(AgsBusinessGroup *business_group,
			 GObject *security_context,
			 gchar *user_uuid,
			 gchar *security_token,
			 gchar *group_uuid,
			 gchar *group_name,
			 GError **error);
  gchar* (*get_group_name)(AgsBusinessGroup *business_group,
			   GObject *security_context,
			   gchar *user_uuid,
			   gchar *security_token,
			   gchar *group_uuid,
			   GError **error);

  void (*set_user)(AgsBusinessGroup *business_group,
		   GObject *security_context,
		   gchar *user_uuid,
		   gchar *security_token,
		   gchar *group_uuid,
		   gchar **user,
		   GError **error);
  gchar** (*get_user)(AgsBusinessGroup *business_group,
		      GObject *security_context,
		      gchar *user_uuid,
		      gchar *security_token,
		      gchar *group_uuid,
		      GError **error);
};