AgsBusinessGroup

AgsBusinessGroup — base group permissions

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsBusinessGroup

Includes

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

Description

The AgsBusinessGroup interface gives you base group permissions.

Functions

ags_business_group_set_business_group_name ()

void
ags_business_group_set_business_group_name
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *group_id,
                                gchar *business_group_name,
                                GError **error);

Set business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

group_id

the group's id

 

business_group_name

the business group name

 

error

the GError

 

Since: 2.0.0


ags_business_group_get_business_group_name ()

gchar *
ags_business_group_get_business_group_name
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *group_id,
                                GError **error);

Get business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

group_id

the group's id

 

error

the GError

 

Returns

the business group name as string

Since: 2.0.0


ags_business_group_set_user_id ()

void
ags_business_group_set_user_id (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                gchar **user_id,
                                GError **error);

Set business group ids of users as string array.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

user_id

the string array containing ids of users

 

error

the GError

 

Since: 2.0.0


ags_business_group_get_user_id ()

gchar **
ags_business_group_get_user_id (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                GError **error);

Get business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

error

the GError

 

Returns

the business group's ids of users as string array

Since: 2.0.0


ags_business_group_set_context_path_with_read_permission ()

void
ags_business_group_set_context_path_with_read_permission
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                gchar **context_path,
                                GError **error);

Set business group context paths as string array.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

context_path

the string array containing context paths

 

error

the GError

 

Since: 2.0.0


ags_business_group_get_context_path_with_read_permission ()

gchar **
ags_business_group_get_context_path_with_read_permission
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                GError **error);

Get business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

error

the GError

 

Returns

the business group's context paths as string array

Since: 2.0.0


ags_business_group_set_context_path_with_write_permission ()

void
ags_business_group_set_context_path_with_write_permission
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                gchar **context_path,
                                GError **error);

Set business group context paths as string array.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

context_path

the string array containing context paths

 

error

the GError

 

Since: 2.0.0


ags_business_group_get_context_path_with_write_permission ()

gchar **
ags_business_group_get_context_path_with_write_permission
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                GError **error);

Get business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

error

the GError

 

Returns

the business group's context paths as string array

Since: 2.0.0


ags_business_group_set_context_path_with_execute_permission ()

void
ags_business_group_set_context_path_with_execute_permission
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                gchar **context_path,
                                GError **error);

Set business group context paths as string array.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

context_path

the string array containing context paths

 

error

the GError

 

Since: 2.0.0


ags_business_group_get_context_path_with_execute_permission ()

gchar **
ags_business_group_get_context_path_with_execute_permission
                               (AgsBusinessGroup *business_group,
                                GObject *security_context,
                                gchar *login,
                                gchar *security_token,
                                gchar *business_group_name,
                                GError **error);

Get business group name.

Parameters

business_group

the AgsBusinessGroup

 

security_context

the AgsSecurityContext

 

login

the login

 

security_token

the security token

 

business_group_name

the business group name

 

error

the GError

 

Returns

the business group's context paths as string array

Since: 2.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 interface;
  
  void (*set_business_group_name)(AgsBusinessGroup *business_group,
				  GObject *security_context,
				  gchar *login,
				  gchar *security_token,
				  gchar *group_id,
				  gchar *business_group_name,
				  GError **error);
  gchar* (*get_business_group_name)(AgsBusinessGroup *business_group,
				    GObject *security_context,
				    gchar *login,
				    gchar *security_token,
				    gchar *group_id,
				    GError **error);
  
  void (*set_user_id)(AgsBusinessGroup *business_group,
		      GObject *security_context,
		      gchar *login,
		      gchar *security_token,
		      gchar *business_group_name,
		      gchar** user_id,
		      GError **error);
  gchar** (*get_user_id)(AgsBusinessGroup *business_group,
			 GObject *security_context,
			 gchar *login,
			 gchar *security_token,
			 gchar *business_group_name,
			 GError **error);
  
  void (*set_context_path_with_read_permission)(AgsBusinessGroup *business_group,
						GObject *security_context,
						gchar *login,
						gchar *security_token,
						gchar *business_group_name,
						gchar **context_path,
						GError **error);
  gchar** (*get_context_path_with_read_permission)(AgsBusinessGroup *business_group,
						   GObject *security_context,
						   gchar *login,
						   gchar *security_token,
						   gchar *business_group_name,
						   GError **error);
  
  void (*set_context_path_with_write_permission)(AgsBusinessGroup *business_group,
						 GObject *security_context,
						 gchar *login,
						 gchar *security_token,
						 gchar *business_group_name,
						 gchar **context_path,
						 GError **error);
  gchar** (*get_context_path_with_write_permission)(AgsBusinessGroup *business_group,
						    GObject *security_context,
						    gchar *login,
						    gchar *security_token,
						    gchar *business_group_name,
						    GError **error);
  
  void (*set_context_path_with_execute_permission)(AgsBusinessGroup *business_group,
						   GObject *security_context,
						   gchar *login,
						   gchar *security_token,
						   gchar *business_group_name,
						   gchar **context_path,
						   GError **error);
  gchar** (*get_context_path_with_execute_permission)(AgsBusinessGroup *business_group,
						      GObject *security_context,
						      gchar *login,
						      gchar *security_token,
						      gchar *business_group_name,
						      GError **error);
};