/
concepts.db.gtw
39 lines (25 loc) · 1.22 KB
/
concepts.db.gtw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
~~LANG:FR@frman:droits2/concepts.db~~
jAcl2.db is a "db" or database driver of jAcl2. rights are stored in a database.
It implements generic concepts fo jAcl2 and add one feature: support of user
groups. Then, the basic elements defining a right are:
* a subject
* a user group
* a resource (optional)
===== Groups and users =====
Each user is in one or more groups. Remember with jAcl2.db, a rights apply only
on one or more groups and not directly on a user.
Still, you can add a right to a specific user. it is enabled by the automatic
existence of a "private" group dedicated to each user. Each user has its own
private group in which he is alone...
There are three group types :
* private groups. hidden in group lists
* normal groups
* default groups : those in which a new user is automatically added.
===== class utilities =====
Two class utilities come with jAcl2.db to manage groups, users and rights:
@@C@jAcl2DbManager@@ and @@C@jAcl2DbUserGroup@@.
Their use are similar theorically with jelix-scripts commands (described in
[[configuration|Configure jAcl2.db]]), and you can also read the
[[refapi:|reference documentation]].
===== Schema of relationnal data of jAcl2.db =====
{{jacl2db_mcd.png|}}