Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
private:matverw_database [2013/03/27 21:05] Patrick Wacker zwischenspeicherung |
private:matverw_database [2013/03/28 19:55] (aktuell) Patrick Wacker [rights assignments] some tests |
||
---|---|---|---|
Zeile 14: | Zeile 14: | ||
edge [ fontname=Helvetica, fontsize=10 ]; | edge [ fontname=Helvetica, fontsize=10 ]; | ||
| | ||
- | subgraph cluster0 { label = "rights"; style="solid"; color="gray"; | + | subgraph cluster0 { label = "rights"; style="solid"; color="gray"; spacing="4"; |
- | rxuy [label = "{<r1-u1> r1-u1|<r2-u1> r2-u1|<r1-u2> r1-u2|<r2-u2> r2-u2}"]; | + | rxuy [label = "{<r1-u1> r1-u1|<r2-u1> r2-u1|<r1-u2> r1-u2|<r2-u2> r2-u2}", color="blue"]; |
rxrgy [label = "{<r1-rg1> r1-rg1|<r2-rg1> r2-rg1|<r3-rg1> r3-rg1|<r1-rg2> r1-rg2|<r1-rg3> r1-rg3}"]; | rxrgy [label = "{<r1-rg1> r1-rg1|<r2-rg1> r2-rg1|<r3-rg1> r3-rg1|<r1-rg2> r1-rg2|<r1-rg3> r1-rg3}"]; | ||
rxrgugy [label = "{<r1-rg-ug1> r1-rg-ug1|<r2-rg-ug1> r2-rg-ug1|<r1-rg-ug2> r1-rg-ug2|<r2-rg-ug2> r1-rg-ug2|<r3-rg-ug2> r1-rg-ug2}"]; | rxrgugy [label = "{<r1-rg-ug1> r1-rg-ug1|<r2-rg-ug1> r2-rg-ug1|<r1-rg-ug2> r1-rg-ug2|<r2-rg-ug2> r1-rg-ug2|<r3-rg-ug2> r1-rg-ug2}"]; | ||
Zeile 64: | Zeile 64: | ||
rg:"rg1" -> users:"u1" [ arrowhead="open", style="solid" ]; | rg:"rg1" -> users:"u1" [ arrowhead="open", style="solid" ]; | ||
- | {rangdir="same"; "rg"; "ug"; } | ||
} | } | ||
</graphviz> | </graphviz> | ||
+ | ab hier dann der zweite Versuch, vielleicht ist die Darstellung etwas besser | ||
+ | |||
+ | <graphviz dot left> | ||
+ | digraph rights_assignments { | ||
+ | graph [ rankdir="LR" ]; | ||
+ | node [ shape=record, fontname=Helvetica, fontsize=10 ]; | ||
+ | edge [ fontname=Helvetica, fontsize=10 ]; | ||
+ | | ||
+ | subgraph cluster0 { label = "rights"; style="solid"; color="gray"; | ||
+ | r1_u1 [label = "r1-u1"]; | ||
+ | r2_u1 [label = "r2-u1"]; | ||
+ | r1_u2 [label = "r1-u2"]; | ||
+ | r2_u1 [label = "r2-u2"]; | ||
+ | |||
+ | r1_rg1 [label = "r1-rg1"]; | ||
+ | r2_rg1 [label = "r2-rg1"]; | ||
+ | r3_rg1 [label = "r3-rg1"]; | ||
+ | r1_rg2 [label = "r1-rg2"]; | ||
+ | r1_rg3 [label = "r1-rg3"]; | ||
+ | | ||
+ | r1_rg_ug1 [label = "r1-rg-ug1"]; | ||
+ | r2_rg_ug1 [label = "r2-rg-ug1"]; | ||
+ | r1_rg_ug2 [label = "r1-rg-ug2"]; | ||
+ | r2_rg_ug2 [label = "r1-rg-ug2"]; | ||
+ | r3_rg_ug2 [label = "r1-rg-ug2"]; | ||
+ | | ||
+ | r1_ug1 [label = "r1-ug1"]; | ||
+ | r2_ug1 [label = "r2-ug1"]; | ||
+ | r1_ug12 [label = "r1-ug12"]; | ||
+ | r2_ug12 [label = "r1-ug12"]; | ||
+ | } | ||
+ | | ||
+ | subgraph cluster1 { label = "right groups"; style="solid"; color="gray"; | ||
+ | rg1 [label = "rg1"]; | ||
+ | rg2 [label = "rg2"]; | ||
+ | rg3 [label = "rg3"]; | ||
+ | rg_ug1 [label = "rg-ug1"]; | ||
+ | rg_ug2 [label = "rg-ug2"]; | ||
+ | } | ||
+ | |||
+ | subgraph cluster2 { label = "users"; style="filled, dashed"; color="black"; fillcolor="green"; | ||
+ | u1 [label = "u1"]; | ||
+ | u2 [label = "u2"]; | ||
+ | } | ||
+ | | ||
+ | subgraph cluster3 { label = "user groups"; style="solid"; color="gray"; | ||
+ | ug1 [label = "ug1"]; | ||
+ | ug2 [label = "ug2"]; | ||
+ | } | ||
+ | |||
+ | r1_u1 -> u1 [ arrowhead="open", style="solid" ]; | ||
+ | r2_u1 -> u1 [ arrowhead="open", style="solid" ]; | ||
+ | r1_u2 -> u2 [ arrowhead="open", style="solid" ]; | ||
+ | r2_u2 -> u2 [ arrowhead="open", style="solid" ]; | ||
+ | | ||
+ | | ||
+ | r1_rg1 -> rg1 [ arrowhead="open", style="solid" ]; | ||
+ | r2_rg1 -> rg1 [ arrowhead="open", style="solid" ]; | ||
+ | r3_rg1 -> rg1 [ arrowhead="open", style="solid" ]; | ||
+ | r1_rg2 -> rg2 [ arrowhead="open", style="solid" ]; | ||
+ | r1_rg3 -> rg3 [ arrowhead="open", style="solid", label="", color="gray"]; | ||
+ | | ||
+ | r1_rg-ug1 -> rg_ug1 [ arrowhead="open", style="solid" ]; | ||
+ | r2_rg-ug1 -> rg_ug1 [ arrowhead="open", style="solid" ]; | ||
+ | r1_rg-ug2 -> rg_ug2 [ arrowhead="open", style="solid" ]; | ||
+ | r2_rg-ug2 -> rg_ug2 [ arrowhead="open", style="solid" ]; | ||
+ | r3_rg-ug2 -> rg_ug2 [ arrowhead="open", style="solid" ]; | ||
+ | | ||
+ | r1_ug1 -> ug1 [ arrowhead="open", style="solid" ]; | ||
+ | r2_ug1 -> ug1 [ arrowhead="open", style="solid" ]; | ||
+ | r1_ug12 -> ug1 [ arrowhead="open", style="solid" ]; | ||
+ | r2_ug12 -> ug1 [ arrowhead="open", style="solid" ]; | ||
+ | r1_ug12 -> ug2 [ arrowhead="open", style="solid", color="red"]; | ||
+ | r2_ug12 -> ug2 [ arrowhead="open", style="solid", color="red" ]; | ||
+ | |||
+ | rg_ug1 -> ug1 [ arrowhead="open", style="solid" ]; | ||
+ | rg_ug2 -> ug2 [ arrowhead="open", style="solid" ]; | ||
+ | | ||
+ | ug1 -> u1 [ arrowhead="open", style="solid" ]; | ||
+ | rg1 -> u1 [ arrowhead="open", style="solid" ]; | ||
+ | |||
+ | } | ||
+ | </graphviz> |