Wiki source code of User Class Diagram (Target)
Last modified by Robert Schaub on 2026/02/08 08:31
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{warning}} | ||
| 2 | **Not Implemented (v2.6.33)** - User class hierarchy is **not yet implemented**. This diagram shows the **target architecture**. Current system has anonymous users only. | ||
| 3 | {{/warning}} | ||
| 4 | |||
| 5 | = Target User Class Diagram = | ||
| 6 | |||
| 7 | {{mermaid}} | ||
| 8 | |||
| 9 | classDiagram | ||
| 10 | class User { | ||
| 11 | +UUID id | ||
| 12 | +String username | ||
| 13 | +String email | ||
| 14 | +Role role | ||
| 15 | +Int reputation | ||
| 16 | +Timestamp created_at | ||
| 17 | +contribute() | ||
| 18 | +flag_issue() | ||
| 19 | +earn_reputation() | ||
| 20 | } | ||
| 21 | class Reader { | ||
| 22 | +browse() | ||
| 23 | +search() | ||
| 24 | +flag_content() | ||
| 25 | } | ||
| 26 | class Contributor { | ||
| 27 | +edit_claims() | ||
| 28 | +add_evidence() | ||
| 29 | +suggest_improvements() | ||
| 30 | } | ||
| 31 | class Moderator { | ||
| 32 | +review_flags() | ||
| 33 | +hide_content() | ||
| 34 | +resolve_disputes() | ||
| 35 | } | ||
| 36 | User --> Reader : default role | ||
| 37 | User --> Contributor : registers and earns reputation | ||
| 38 | User --> Moderator : appointed | ||
| 39 | |||
| 40 | {{/mermaid}} | ||
| 41 | |||
| 42 | = Role Permissions = | ||
| 43 | |||
| 44 | |= Role |= Capabilities |= Requirements | ||
| 45 | | **Reader** | Browse, search, flag content | Default (no login) | ||
| 46 | | **Contributor** | Edit claims, add evidence, suggest improvements | Registration + sufficient reputation | ||
| 47 | | **Moderator** | Review flags, hide content, resolve disputes | Appointed by Governing Team | ||
| 48 | |||
| 49 | = Current Implementation = | ||
| 50 | |||
| 51 | * All users are anonymous Readers | ||
| 52 | * No authentication system | ||
| 53 | * No reputation tracking | ||
| 54 | * No role-based permissions | ||
| 55 | |||
| 56 | = Target Design = | ||
| 57 | |||
| 58 | **Simplified flat role structure**: | ||
| 59 | * Three roles only: Reader (default), Contributor (earned), Moderator (appointed) | ||
| 60 | * Reputation system replaces role hierarchy | ||
| 61 | * Progressive permissions based on reputation, not titles |