Wiki source code of Rights UI Proposal 3
Last modified by Vincent Massol on 2024/11/19 16:13
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{velocity}} |
| 2 | #set ($ok = $xwiki.ssx.use("Improvements.Rights3Wiki")) | ||
| 3 | #set ($ok = $xwiki.ssx.use("Improvements.Rights3Proposal")) | ||
| 4 | {{/velocity}} | ||
| 5 | |||
| 6 | = Interaction = | ||
| 7 | |||
| 8 | {{box cssClass="floatinginfobox" title="**Prototypes v3**"}} | ||
| 9 | * [[Wiki Level>>Rights3Wiki]] | ||
| 10 | * [[Space Level>>Rights3Space]] | ||
| 11 | * [[Page Level>>Rights3Page]] | ||
| 12 | {{/box}} | ||
| 13 | |||
| 14 | {{toc/}} | ||
| 15 | |||
| 16 | == Remarks == | ||
| 17 | * Roles are like groups for rights, that are user defined; | ||
| 18 | * Rights and roles are inherited from one level to another; | ||
| 19 | ** Page Level has a special default role: Creator; | ||
| 20 | |||
| 21 | == Navigation == | ||
| 22 | |||
| 23 | * Add: "Click to add level" -> Input -> Enter | ||
| 24 | * Change level: Click on the Level | ||
| |
2.1 | 25 | * Remove: X ("Remove level") |
| |
1.1 | 26 | |
| 27 | {{html wiki="true"}} | ||
| 28 | <div class="rightsUI" id="xwikiobjects"> | ||
| 29 | <div id="admin-page-header"> | ||
| 30 | <div class="explicationHeader"> | ||
| 31 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 32 | <div class="inheritanceLevel"> | ||
| 33 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 34 | <a href="#" title="Global Level">Global</a> <span class="separator">»</span> <span class="more" title="Click to add level"><a href="#">…</a></span> | ||
| 35 | </div> | ||
| 36 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 37 | <div class="inheritanceLevel"> | ||
| 38 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 39 | <a href="#" title="Global Level">Global</a> <span class="separator">»</span> <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> <span class="separator">»</span> <span class="more" title="Click to add level"><a href="#">…</a></span> | ||
| 40 | </div> | ||
| 41 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 42 | <div class="inheritanceLevel"> | ||
| 43 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 44 | <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a></span></span> <span class="separator">»</span> <span class="more" title="Click to add level"><a href="#">…</a></span> | ||
| 45 | </div> | ||
| 46 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 47 | <div class="inheritanceLevel"> | ||
| 48 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 49 | <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a></span></span> <span class="separator">»</span> <span class="more" title="Click to add level"><span title="Space level" class="space"><input type="text" value="space" title=""/></span></span> | ||
| 50 | </div> | ||
| 51 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 52 | <div class="inheritanceLevel"> | ||
| 53 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 54 | <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a></span></span> <span class="separator">»</span> <span class="space" title="Space level"><span class="tag-wrapper"><a href="#">Sandbox</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> <span class="separator">»</span> <span class="more" title="Click to add level"><a href="#">…</a></span> | ||
| 55 | </div> | ||
| 56 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 57 | <div class="inheritanceLevel"> | ||
| 58 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 59 | <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a></span></span> <span class="separator">»</span> <span class="space" title="Space level"><span class="tag-wrapper"><a href="#">Sandbox</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> <span class="separator">»</span> <span title="Page level" class="page"><input type="text" value="page" title=""/></span> | ||
| 60 | </div> | ||
| 61 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 62 | <div class="inheritanceLevel"> | ||
| 63 | <span class="inheritedRight"><span class="help" style="cursor: help;" title="Rights are inherited if they are set in a higher hierarchy level. For example, a Page inherits all rights set for the Space it belongs to and also all the rights set for the Wiki it belongs to. The same happens for a User whom inherits all rights set for the Group he is part of">Inheritance</span></span> Level: | ||
| 64 | <span class="wiki" title="Wiki level"><span class="tag-wrapper"><a href="#">XWiki</a></span></span> <span class="separator">»</span> <span class="space" title="Space level"><span class="tag-wrapper"><a href="#">Sandbox</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> <span class="separator">»</span> <span class="page" title="Page level"><span class="tag-wrapper"><a href="#">Sandbox Test Page 2</a><a title="Remove level" href="#" class="tag-tool tag-delete">X</a></span></span> | ||
| 65 | </div> | ||
| 66 | <div class="clearfloats" style="height: 10px;"></div> | ||
| 67 | </div> | ||
| 68 | <div class="clearfloats"></div> | ||
| 69 | </div> | ||
| 70 | </div> | ||
| 71 | {{/html}} | ||
| 72 | |||
| 73 | == Adding an user == | ||
| 74 | * There are rights defined for Registered Users at Wiki Level, being Inherited for Space Level: | ||
| 75 | [[image:addU1.png]] | ||
| 76 | * Adding "evalica" user using the autosuggest: | ||
| 77 | [[image:addU2.png]] | ||
| 78 | * The added user inherits "Registered" role. Making changes to the UI, the "Save"/"Reset" actions are shown: | ||
| 79 | [[image:addU3.png]] | ||
| 80 | * We add another role for this user using the autosuggest from the remaining possible roles: | ||
| 81 | [[image:addU4.png]] | ||
| 82 | * All modified fields are marked highlighted: | ||
| 83 | [[image:addU5.png]] | ||
| 84 | * After the Save, the changes are added to the system. "Reviewer" has a normal color stating that is defined for this level. All the others roles are inherited (being marked with yellow): | ||
| 85 | [[image:addU6.png]] | ||
| 86 | |||
| 87 | == Removing an user == | ||
| 88 | * Hover on the desired user. Click on the "X" ("Remove users") | ||
| 89 | * Obs: If the users or roles have not been declared at this level, they cannot be deleted here. | ||
| 90 | [[image:removeU1.png]] | ||
| 91 | |||
| 92 | == Adding a right to Role description == | ||
| 93 | * Autosuggest from the remaining possible rights for that level | ||
| 94 | [[image:addR1.png]] | ||
| 95 | |||
| 96 | == Removing a right from Role description == | ||
| 97 | * Hover on the desired right. Click on the "X" ("Remove right") | ||
| 98 | * Obs: If the users or roles have not been declared at this level, they cannot be deleted here. | ||
| 99 | [[image:removeR1.png]] | ||
| 100 | |||
| 101 | = Screenshots= | ||
| 102 | == Wiki Level == | ||
| |
4.1 | 103 | [[[[image:rights3Wiki.png||width="900px"]]>>Rights3Wiki]] |
| |
1.1 | 104 | |
| 105 | == Space Level == | ||
| |
4.1 | 106 | [[[[image:rights3Space.png||width="900px"]]>>Rights3Space]] |
| |
1.1 | 107 | |
| 108 | == Page Level == | ||
| |
3.1 | 109 | [[[[image:rights3Page.png||width="900px"]]>>Rights3Page]] |