mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-08-31 20:36:52 +00:00
Add rpc for searching group by name
This commit is contained in:
@@ -276,6 +276,10 @@ ccnet_start_rpc(CcnetSession *session)
|
||||
ccnet_rpc_set_group_creator,
|
||||
"set_group_creator",
|
||||
searpc_signature_int__int_string());
|
||||
searpc_server_register_function ("ccnet-threaded-rpcserver",
|
||||
ccnet_rpc_search_groups,
|
||||
"search_groups",
|
||||
searpc_signature_objlist__string_int_int());
|
||||
|
||||
searpc_server_register_function ("ccnet-threaded-rpcserver",
|
||||
ccnet_rpc_create_org,
|
||||
@@ -776,6 +780,21 @@ ccnet_rpc_search_emailusers (const char *source,
|
||||
return emailusers;
|
||||
}
|
||||
|
||||
GList*
|
||||
ccnet_rpc_search_groups (const char *group_patt,
|
||||
int start, int limit,
|
||||
GError **error)
|
||||
{
|
||||
CcnetGroupManager *group_mgr =
|
||||
((CcnetServerSession *)session)->group_mgr;
|
||||
GList *groups = NULL;
|
||||
|
||||
groups = ccnet_group_manager_search_groups (group_mgr,
|
||||
group_patt,
|
||||
start, limit);
|
||||
return groups;
|
||||
}
|
||||
|
||||
GList*
|
||||
ccnet_rpc_search_ldapusers (const char *keyword,
|
||||
int start, int limit,
|
||||
|
Reference in New Issue
Block a user