LassoIdWsf2DataService

LassoIdWsf2DataService

Synopsis

                    LassoIdWsf2DataService;
LassoIdWsf2DataService* lasso_idwsf2_data_service_new   (LassoServer *server);
gint                lasso_idwsf2_data_service_init_query
                                                        (LassoIdWsf2DataService *service);
gint                lasso_idwsf2_data_service_add_query_item
                                                        (LassoIdWsf2DataService *service,
                                                         const gchar *item_query,
                                                         const gchar *item_id);
gint                lasso_idwsf2_data_service_init_modify
                                                        (LassoIdWsf2DataService *service);
gint                lasso_idwsf2_data_service_add_modify_item
                                                        (LassoIdWsf2DataService *service,
                                                         const gchar *item_query,
                                                         xmlNode *new_data,
                                                         gboolean overrideAllowed,
                                                         const gchar *item_id);

Description

Details

LassoIdWsf2DataService

typedef struct {
	LassoIdWsf2Profile parent;
} LassoIdWsf2DataService;

lasso_idwsf2_data_service_new ()

LassoIdWsf2DataService* lasso_idwsf2_data_service_new   (LassoServer *server);

Create a new LassoIdWsf2DataService.

server:(allow-none) :

a LassoServer object, for resolving ProviderIDs

Returns :

a newly created LassoIdWsf2DataService object

lasso_idwsf2_data_service_init_query ()

gint                lasso_idwsf2_data_service_init_query
                                                        (LassoIdWsf2DataService *service);

Initialise an ID-WSF 2.0 DataService query request.

service :

a LassoIdWsf2DataService

Returns :

0 on success; or a negative value otherwise.

lasso_idwsf2_data_service_add_query_item ()

gint                lasso_idwsf2_data_service_add_query_item
                                                        (LassoIdWsf2DataService *service,
                                                         const gchar *item_query,
                                                         const gchar *item_id);

Add an item in the query request.

service :

a LassoIdWsf2DataService

item_query :

a query string

item_id:(allow-none) :

identifier of the queried item, which will allow to retrieve it in the response

Returns :

0 on success; or a negative value otherwise.

lasso_idwsf2_data_service_init_modify ()

gint                lasso_idwsf2_data_service_init_modify
                                                        (LassoIdWsf2DataService *service);

Initialise an ID-WSF 2.0 DataService modify request.

service :

a LassoIdWsf2DataService

Returns :

0 on success; or a negative value otherwise.

lasso_idwsf2_data_service_add_modify_item ()

gint                lasso_idwsf2_data_service_add_modify_item
                                                        (LassoIdWsf2DataService *service,
                                                         const gchar *item_query,
                                                         xmlNode *new_data,
                                                         gboolean overrideAllowed,
                                                         const gchar *item_id);

Add an item in the modification request.

service :

a LassoIdWsf2DataService

item_query :

XPATH of the item to modify

new_data:(allow-none) :

new value for the selected item

overrideAllowed :

allow-none)(default FALSE. allow-none. default FALSE.

item_id:(allow-none) :

identifier of the item to modify

Returns :

0 on success; or a negative value otherwise.