Wiki source code of Rights UI Proposal 2
Last modified by Vincent Massol on 2024/11/19 16:13
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | #set ($ok = $xwiki.ssx.use("Improvements.Rights2Proposal")) | ||
| 3 | #set ($ok = $xwiki.ssx.use("Improvements.Rights2Wiki")) | ||
| 4 | #set ($ok = $xwiki.ssx.use("XWiki.AdminSheet")) | ||
| 5 | #set ($ok = $xwiki.jsx.use("Improvements.Rights2Wiki")) | ||
| 6 | #set ($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true)) | ||
| 7 | #set ($ok = $xwiki.ssfx.use('js/xwiki/importer/import.css', true)) | ||
| 8 | #set ($ok = $xwiki.jsfx.use('js/xwiki/editors/dataeditors.js', true)) | ||
| 9 | {{/velocity}} | ||
| 10 | |||
| 11 | {{box cssClass="floatinginfobox" title="**Prototypes v2**"}} | ||
| 12 | * [[Wiki Level>>Rights2Wiki]] | ||
| 13 | * [[Space Level>>Rights2Space]] | ||
| 14 | * [[Page Level>>Rights2Page]] | ||
| 15 | {{/box}} | ||
| 16 | |||
| 17 | {{toc/}} | ||
| 18 | |||
| 19 | = Remarks = | ||
| 20 | |||
| 21 | * Makes explicit the meaning of the different fields through tooltips and describing text: Inheritance, View, Comment, Edit, Admin, Programming, Register rights; | ||
| 22 | * The rights are grouped according to their purpose; | ||
| 23 | * The cascading of the rights between wiki, space and document is showed explicitly; | ||
| 24 | |||
| 25 | = Interaction Explanations = | ||
| 26 | |||
| 27 | == Changing Rights == | ||
| 28 | |||
| 29 | * Rights selection is done through a custom select: | ||
| 30 | [[image:rightsSelection.png]] | ||
| 31 | |||
| 32 | {{velocity}} | ||
| 33 | {{html wiki="true"}} | ||
| 34 | <div class="clearfloats"></div> | ||
| 35 | <div class="rightsUI" id="xwikiobjects"> | ||
| 36 | <div class="leftMargin column65"> | ||
| 37 | <div class="rightSection"> | ||
| 38 | <div class="xclass collapsable"> | ||
| 39 | <div class="xclass-content"> | ||
| 40 | <table summary="" id="alldocs" class="xwiki-livetable"> | ||
| 41 | <tbody | ||
| 42 | <tr><td class="xwiki-livetable-display-container"> | ||
| 43 | <table class="xwiki-livetable-display"> | ||
| 44 | <thead class="xwiki-livetable-display-header"> | ||
| 45 | <tr> | ||
| 46 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 47 | <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1">Type</label></a></th> | ||
| 48 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 49 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">User</label></a></th> | ||
| 50 | <th scope="col" class="xwiki-livetable-display-header-text sortable asc"> | ||
| 51 | <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">{{tooltip label="Register"}}Users can create new user accounts{{/tooltip}}</label></a></th> | ||
| 52 | </tr> | ||
| 53 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 54 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">user</option><option value="default">group</option></select></td> | ||
| 55 | <td class="xwiki-livetable-display-header-filter"><input type="text" title="Filter for the Space column" size="${colprop.size}" name="doc.space" id="xwiki-livetable-alldocs-filter-2" value="filter..."></td> | ||
| 56 | <td class="xwiki-livetable-display-header-filter"><select><option value="all">all</option><option value="default">allow</option><option value="default">deny</option></select></td> | ||
| 57 | </tr> | ||
| 58 | </thead> | ||
| 59 | <tbody id="alldocs-display" class="xwiki-livetable-display-body"> | ||
| 60 | <tr class="default"> | ||
| 61 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 62 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">Registered Users</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 63 | <td class="actions "> | ||
| 64 | <div class="selection"> | ||
| 65 | <div class="rightmenu"> | ||
| 66 | #xwikitopmenuentrystart('#' '' 'allow icon') | ||
| 67 | #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allowDefault.png" title="Default Value"/>' '') | ||
| 68 | #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allow.png" title="Allow"/>' '') | ||
| 69 | #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/deny.png" title="Deny"/>' '') | ||
| 70 | #xwikitopmenuentryend() | ||
| 71 | </div> | ||
| 72 | </div> | ||
| 73 | </td> | ||
| 74 | </tr> | ||
| 75 | <tr class="default"> | ||
| 76 | <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td> | ||
| 77 | <td class="doc_space linkspace typetext"><span class="tag-wrapper"><a href="#">Unregistered Users</a><a title="Remove rights for users" href="#" class="tag-tool tag-delete">X</a></span></td> | ||
| 78 | <td class="actions "> | ||
| 79 | <div class="selection"> | ||
| 80 | <div class="rightmenu"> | ||
| 81 | #xwikitopmenuentrystart('#' '' 'allow icon') | ||
| 82 | #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allowDefault.png" title="Default Value"/>' '') | ||
| 83 | #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allow.png" title="Allow"/>' '') | ||
| 84 | #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/deny.png" title="Deny"/>' '') | ||
| 85 | #xwikitopmenuentryend() | ||
| 86 | </div> | ||
| 87 | </div> | ||
| 88 | </td> | ||
| 89 | </tr> | ||
| 90 | </tbody> | ||
| 91 | <thead class="xwiki-livetable-display-header"> | ||
| 92 | <tr class="xwiki-livetable-display-filters" id=""> | ||
| 93 | <td class="xwiki-livetable-display-header-filter typenumeric"> | ||
| 94 | <span title="Add Special Space Rights" class="addCaption">Add rights to:</span> | ||
| 95 | </td> | ||
| 96 | <td class="xwiki-livetable-display-header-filter"> | ||
| 97 | <span class="addRight"> | ||
| 98 | <input type="text" title="Add specific user" value="user / group"> | ||
| 99 | <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add rights to user"> | ||
| 100 | </span> | ||
| 101 | </td> | ||
| 102 | <td class="xwiki-livetable-display-header-filter" colspan="2"> | ||
| 103 | <span class="buttonwrapper hidden"> | ||
| 104 | <a href="#" class="button">Save</a> | ||
| 105 | <span> or </span> | ||
| 106 | <span class="colorLink">Reset</span> | ||
| 107 | </span> | ||
| 108 | </td> | ||
| 109 | </tr> | ||
| 110 | </thead> | ||
| 111 | </table> | ||
| 112 | </td></tr> | ||
| 113 | </tbody> | ||
| 114 | </table> | ||
| 115 | </div> | ||
| 116 | </div> | ||
| 117 | </div> | ||
| 118 | </div> | ||
| 119 | </div> | ||
| 120 | <div class="clearfloats"></div> | ||
| 121 | {{/html}} | ||
| 122 | {{/velocity}} | ||
| 123 | |||
| 124 | == Adding an user == | ||
| 125 | |||
| 126 | === Use Case 1 === | ||
| 127 | |||
| 128 | * There are no rights for Registered Users: | ||
| 129 | [[image:addUser1.png]] | ||
| 130 | * The autosuggest helps me add an user: | ||
| 131 | [[image:addUser2.png]] | ||
| 132 | * The new users has only default values for his rights. "Save" and "Reset" actions appear. I need to save in order to have my changes apply to the system: | ||
| 133 | [[image:addUser3.png]] | ||
| 134 | * If I change a right value, that value is marked highlighted. Also, "Edit" right implies "View" right: | ||
| 135 | [[image:addUser4.png]] | ||
| 136 | * If I save, the rights are marked as applied: | ||
| 137 | [[image:addUser5.png]] | ||
| 138 | |||
| 139 | === Use Case 2 === | ||
| 140 | |||
| 141 | * There are rights defined for Registered Users: | ||
| 142 | [[image:add2User1.png]] | ||
| 143 | * The added user inherits those rights: | ||
| 144 | [[image:add2User2.png]] | ||
| 145 | * We define our custom rights for that user: | ||
| 146 | [[image:add2User3.png]] | ||
| 147 | |||
| 148 | == Navigation == | ||
| 149 | |||
| 150 | This screenshots only show the "Wiki - Space - Page" case, but the navigation can be easily extended to represent "Main Wiki - SubWiki - Space - Page". | ||
| 151 | |||
| 152 | **Wiki Level** | ||
| 153 | You can use the "Containing Spaces/Pages" to go down the hierarchy. | ||
| 154 | [[[[image:Rights2WikiNavigation.png||width="500px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2WikiNavigation.png]] | ||
| 155 | |||
| 156 | **Page Level** | ||
| 157 | Right after the title "Rights Management", there is a "Inheritance Level" navigation component to go upwards the hierarchy. | ||
| 158 | [[[[image:Rights2Pageclosed.png||width="500px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Pageclosed.png]] | ||
| 159 | |||
| 160 | = Screenshots = | ||
| 161 | |||
| 162 | == Wiki Level == | ||
| 163 | |||
| 164 | **Prototype**: [[Rights Management at Wiki Level>>Rights2Wiki]] | ||
| 165 | [[[[image:Rights2Wikiclosed.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Wikiclosed.png]] | ||
| 166 | [[[[image:Rights2Wikiopen.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Wikiopen.png]] | ||
| 167 | |||
| 168 | == Space Level == | ||
| 169 | |||
| 170 | **Prototype**: [[Rights Management at Space Level>>Rights2Space]] | ||
| 171 | [[[[image:Rights2Spaceclosed.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Spaceclosed.png]] | ||
| 172 | [[[[image:Rights2Spaceopen.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Spaceopen.png]] | ||
| 173 | |||
| 174 | == Page Level == | ||
| 175 | |||
| 176 | **Prototype**: [[Rights Management at Page Level>>Rights2Page]] | ||
| 177 | [[[[image:Rights2Pageclosed.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Pageclosed.png]] | ||
| 178 | [[[[image:Rights2Pageopen.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Pageopen.png]] |