ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
sa
group.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
19
/* */
20
21
#ifndef GROUP_H
22
#define GROUP_H
23
24
#include <
sa/sa.h
>
25
#include <sa/libsa_exports.h>
26
#include <
unidefs.h
>
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
44
extern
SA_API
int
SA_extent_group
(
45
int
* num_of_groups,
46
tag_t
** group_tags
47
);
48
62
extern
SA_API
int
SA_initialize_h_group
(
63
tag_t
group_tag,
64
const
char
* groupname,
65
int
privilege,
66
tag_t
parent_group
67
);
68
82
extern
SA_API
int
SA_create_h_group
(
83
const
char
* groupname,
84
int
privilege,
85
tag_t
parent_group,
86
tag_t
* group_tag
87
);
88
95
extern
SA_API
int
SA_set_group_name
(
96
tag_t
group_tag,
97
const
char
groupname[
SA_group_name_size_c
+ 1]
98
);
99
103
extern
SA_API
int
SA_set_group_name2
(
104
tag_t
group_tag,
105
const
char
*groupname
106
);
107
114
extern
SA_API
int
SA_set_group_description
(
115
tag_t
group_tag,
116
const
char
description[
SA_description_size_c
+ 1]
117
);
118
122
extern
SA_API
int
SA_set_group_description2
(
123
tag_t
group_tag,
124
const
char
*description
125
);
126
138
extern
SA_API
int
SA_set_group_system_priv
(
139
tag_t
group_tag,
140
int
privilege
141
);
142
143
extern
SA_API
int
SA_set_group_parent
(
144
tag_t
group_tag,
145
tag_t
parent_group
146
);
147
154
extern
SA_API
int
SA_set_group_volume_name
(
155
tag_t
group_tag,
156
char
volume_name[
SA_volume_name_size_c
+1]
157
);
158
162
extern
SA_API
int
SA_set_group_volume_name2
(
163
tag_t
group_tag,
164
const
char
*volume_name
165
);
166
173
extern
SA_API
int
SA_set_group_local_volume_name
(
174
tag_t
group_tag,
175
char
volume_name[
SA_volume_name_size_c
+1]
176
);
177
181
extern
SA_API
int
SA_set_group_local_volume_name2
(
182
tag_t
group_tag,
183
const
char
*volume_name
184
);
185
192
extern
SA_API
int
SA_set_group_organization_name
(
193
tag_t
group_tag,
194
const
char
organization_name[
SA_organization_name_size_c
+ 1]
195
);
196
197
/*
198
Sets the organization_name attribute of the group.
199
*/
200
extern
SA_API
int
SA_set_group_organization_name2
(
201
tag_t
group_tag,
202
const
char
*organization_name
203
);
204
211
extern
SA_API
int
SA_set_group_organization_id
(
212
tag_t
group_tag,
213
const
char
organization_id[
SA_organization_id_size_c
+ 1]
214
);
215
219
extern
SA_API
int
SA_set_group_organization_id2
(
220
tag_t
group_tag,
221
const
char
*organization_id
222
);
223
230
extern
SA_API
int
SA_set_group_organization_type
(
231
tag_t
group_tag,
232
const
char
organization_type[
SA_organization_type_size_c
+ 1]
233
);
234
238
extern
SA_API
int
SA_set_group_organization_type2
(
239
tag_t
group_tag,
240
const
char
*organization_type
241
);
242
249
extern
SA_API
int
SA_set_group_organization_legal_name
(
250
tag_t
group_tag,
251
const
char
organization_legal_name[
SA_organization_legal_name_size_c
+ 1]
252
);
253
257
extern
SA_API
int
SA_set_group_organization_legal_name2
(
258
tag_t
group_tag,
259
const
char
*organization_legal_name
260
);
261
268
extern
SA_API
int
SA_set_group_organization_alternate_name
(
269
tag_t
group_tag,
270
const
char
organization_alternate_name[
SA_organization_alternate_name_size_c
+ 1]
271
);
272
276
extern
SA_API
int
SA_set_group_organization_alternate_name2
(
277
tag_t
group_tag,
278
const
char
*organization_alternate_name
279
);
280
287
extern
SA_API
int
SA_set_group_organization_address
(
288
tag_t
group_tag,
289
const
char
organization_address[
SA_organization_address_size_c
+ 1]
290
);
291
295
extern
SA_API
int
SA_set_group_organization_address2
(
296
tag_t
group_tag,
297
const
char
*organization_address
298
);
299
306
extern
SA_API
int
SA_set_group_organization_url
(
307
tag_t
group_tag,
308
const
char
organization_url[
SA_organization_url_size_c
+ 1]
309
);
310
314
extern
SA_API
int
SA_set_group_organization_url2
(
315
tag_t
group_tag,
316
const
char
*organization_url
317
);
318
322
extern
SA_API
int
SA_set_group_operational_status
(
323
tag_t
group_tag,
324
int
operational_status
325
);
326
333
extern
SA_API
int
SA_set_group_nationality
(
334
tag_t
group_tag,
335
const
char
nationality[
SA_nationality_size_c
+ 1]
336
);
337
341
extern
SA_API
int
SA_set_group_nationality2
(
342
tag_t
group_tag,
343
const
char
*nationality
344
);
345
353
extern
SA_API
int
SA_add_role_to_group
(
354
tag_t
group_tag,
355
tag_t
role_tag
356
);
357
365
extern
SA_API
int
SA_remove_role_from_group
(
366
tag_t
group_tag,
367
tag_t
role_tag
368
);
369
376
extern
SA_API
int
SA_find_group
(
377
const
char
* groupname,
378
tag_t
* group_tag
379
);
380
387
extern
SA_API
int
SA_ask_group_name
(
388
tag_t
group_tag,
389
char
groupname[
SA_group_name_size_c
+ 1]
390
);
391
395
extern
SA_API
int
SA_ask_group_name2
(
396
tag_t
group_tag,
397
char
**groupname
398
);
399
400
extern
SA_API
int
SA_ask_group_full_name
(
401
tag_t
group_tag,
402
char
** group_full_name
403
);
404
405
extern
SA_API
int
SA_ask_group_localized_full_name
(
406
tag_t
group_tag,
407
char
** group_loc_full_name
408
);
409
410
extern
SA_API
int
SA_ask_group_display_name
(
411
tag_t
group_tag,
412
char
** group_display_name
413
);
414
421
extern
SA_API
int
SA_ask_group_description
(
422
tag_t
group_tag,
423
char
description[
SA_description_size_c
+ 1]
424
);
425
429
extern
SA_API
int
SA_ask_group_description2
(
430
tag_t
group_tag,
431
char
**description
432
);
433
441
extern
SA_API
int
SA_ask_group_system_priv
(
442
tag_t
group_tag,
443
int
* privilege
444
);
445
446
extern
SA_API
int
SA_ask_group_parent
(
447
tag_t
group_tag,
448
tag_t
* parent
449
);
450
451
extern
SA_API
int
SA_ask_group_child_groups
(
452
tag_t
group_tag,
453
logical
immediate_only,
/* one-level or full expansion */
454
int
* n_children,
455
tag_t
** children
456
);
457
464
extern
SA_API
int
SA_ask_group_volume_name
(
465
tag_t
group_tag,
466
char
volume_name[
SA_volume_name_size_c
+1]
467
);
468
472
extern
SA_API
int
SA_ask_group_volume_name2
(
473
tag_t
group_tag,
474
char
**volume_name
475
);
476
483
extern
SA_API
int
SA_ask_group_local_volume_name
(
484
tag_t
group_tag,
485
char
volume_name[
SA_volume_name_size_c
+1]
486
);
487
491
extern
SA_API
int
SA_ask_group_local_volume_name2
(
492
tag_t
group_tag,
493
char
**volume_name
494
);
495
502
extern
SA_API
int
SA_ask_group_organization_name
(
503
tag_t
group_tag,
504
char
organization_name[
SA_organization_name_size_c
+ 1]
505
);
506
510
extern
SA_API
int
SA_ask_group_organization_name2
(
511
tag_t
group_tag,
512
char
**organization_name
513
);
514
521
extern
SA_API
int
SA_ask_group_organization_id
(
522
tag_t
group_tag,
523
char
organization_id[
SA_organization_id_size_c
+ 1]
524
);
525
529
extern
SA_API
int
SA_ask_group_organization_id2
(
530
tag_t
group_tag,
531
char
**organization_id
532
);
533
540
extern
SA_API
int
SA_ask_group_organization_type
(
541
tag_t
group_tag,
542
char
organization_type[
SA_organization_type_size_c
+ 1]
543
);
544
548
extern
SA_API
int
SA_ask_group_organization_type2
(
549
tag_t
group_tag,
550
char
**organization_type
551
);
552
559
extern
SA_API
int
SA_ask_group_organization_legal_name
(
560
tag_t
group_tag,
561
char
organization_legal_name[
SA_organization_legal_name_size_c
+ 1]
562
);
563
567
extern
SA_API
int
SA_ask_group_organization_legal_name2
(
568
tag_t
group_tag,
569
char
**organization_legal_name
570
);
571
572
579
extern
SA_API
int
SA_ask_group_organization_alternate_name
(
580
tag_t
group_tag,
581
char
organization_alternate_name[
SA_organization_alternate_name_size_c
+ 1]
582
);
583
587
extern
SA_API
int
SA_ask_group_organization_alternate_name2
(
588
tag_t
group_tag,
589
char
**organization_alternate_name
590
);
591
598
extern
SA_API
int
SA_ask_group_organization_address
(
599
tag_t
group_tag,
600
char
organization_address[
SA_organization_address_size_c
+ 1]
601
);
602
606
extern
SA_API
int
SA_ask_group_organization_address2
(
607
tag_t
group_tag,
608
char
**organization_address
609
);
610
617
extern
SA_API
int
SA_ask_group_organization_url
(
618
tag_t
group_tag,
619
char
organization_url[
SA_organization_url_size_c
+ 1]
620
);
621
625
extern
SA_API
int
SA_ask_group_organization_url2
(
626
tag_t
group_tag,
627
char
**organization_url
628
);
629
633
extern
SA_API
int
SA_ask_group_operational_status
(
634
tag_t
group_tag,
635
int
* operational_status
636
);
637
644
extern
SA_API
int
SA_ask_group_nationality
(
645
tag_t
group_tag,
646
char
nationality[
SA_nationality_size_c
+ 1]
647
);
648
652
extern
SA_API
int
SA_ask_group_nationality2
(
653
tag_t
group_tag,
654
char
**nationality
655
);
656
663
extern
SA_API
int
SA_ask_roles_from_group
(
664
tag_t
group_tag,
665
int
* num_of_roles,
666
tag_t
** role_tags
667
);
668
675
extern
SA_API
int
SA_ask_group_default_role
(
676
tag_t
group_tag,
677
tag_t
* role_tag
678
);
679
688
extern
SA_API
int
SA_set_group_default_role
(
689
tag_t
group_tag,
690
tag_t
role_tag
691
);
692
697
extern
SA_API
int
SA_change_group
(
698
tag_t
group_tag,
699
tag_t
role_tag
700
);
701
705
extern
SA_API
int
SA_ask_user_default_role_in_group
(
706
tag_t
user_tag,
707
tag_t
group_tag,
708
tag_t
* role_tag
709
);
710
717
extern
SA_API
int
SA_extent_group_count
(
718
int
* num_groups
719
);
720
721
extern
SA_API
int
SA_list_groups
(
722
int
* num_groups,
723
tag_t
** group_tags,
724
char
*** group_names
726
);
727
728
extern
SA_API
int
SA_list_h_groups
(
729
int
* num_groups,
730
tag_t
** group_tags,
731
tag_t
** parent_groups,
732
char
*** group_names
734
);
738
extern
SA_API
int
SA_get_mapped_group_attr_list
(
739
int
* numberOfAttributes,
740
char
*** list );
741
745
extern
SA_API
int
SA_set_group_last_sync_date
(
746
const
tag_t
group_tag,
747
date_t
syncDate
748
);
752
extern
SA_API
int
SA_get_group_last_sync_date
(
753
const
tag_t
group_tag,
754
date_t
*syncDate
755
);
759
extern
SA_API
int
SA_set_group_data_source
(
760
const
tag_t
group_tag,
761
int
dataSource
762
);
766
extern
SA_API
int
SA_get_group_data_source
(
767
const
tag_t
group_tag,
768
int
*dataSource
769
);
770
771
extern
SA_API
int
SA_ask_group_full_name_by_localized_full_name
(
772
const
char
*locGroupFullName,
773
char
**groupFullName
774
);
775
776
extern
SA_API
int
SA_find_group_by_localized_full_name
(
777
const
char
*localizedFullName,
778
tag_t
*groupTag
779
);
780
781
extern
SA_API
int
SA_find_groups_by_localized_full_name
(
782
const
char
*localizedFullName,
783
int
*num_groups,
784
tag_t
**groupTags
785
);
786
797
extern
SA_API
int
SA_find_privileged_groups
(
798
int
*num_groups,
799
tag_t
**groups
800
);
801
812
extern
SA_API
int
SA_find_privilege_honored_groups
(
813
int
*num_groups,
814
tag_t
**groups
815
);
816
819
#ifdef __cplusplus
820
}
821
#endif
822
823
#include <sa/libsa_undef.h>
824
825
#endif