Wiki source code of Rights Management Proposal

Version 13.1 by Ecaterina Valica on 2010/05/13 11:15

Show last authors
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 {{html wiki="true"}}
12 <div class="floatinginfobox">
13 * [[Prototype Wiki Level>>Rights2Wiki]]
14 * [[Prototype at Space Level>>Rights2Space]]
15 * [[Prototype at Page Level>>Rights2Page]]
16 </div>
17 {{/html}}
18
19 {{toc/}}
20
21 = Screenshots=
22
23 == Wiki Level ==
24 * [[Rights Management at Wiki Level>>Rights2Wiki]]
25 [[[[image:Rights2Wikiclosed.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Wikiclosed.png]]
26 [[[[image:Rights2Wikiopen.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Wikiopen.png]]
27
28 == Space Level ==
29 * [[Rights Management at Space Level>>Rights2Space]]
30 [[[[image:Rights2Spaceclosed.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Spaceclosed.png]]
31 [[[[image:Rights2Spaceopen.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Spaceopen.png]]
32
33 == Page Level ==
34 * [[Rights Management at Page Level>>Rights2Page]]
35 [[[[image:Rights2Pageclosed.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Pageclosed.png]]
36 [[[[image:Rights2Pageopen.png||width="900px"]]>>http://incubator.myxwiki.org/xwiki/bin/download/Improvements/Rights2Proposal/Rights2Pageopen.png]]
37
38 = Remarks =
39
40 * Makes explicit the meaning of the different fields through tooltips and describing text: Inheritance, View, Comment, Edit, Admin, Programming, Register rights;
41 * The rights are grouped according to their purpose;
42 * The cascading of the rights between wiki, space and document is showed explicitly;
43
44 = Interaction Explanations =
45
46 == Changing Rights ==
47
48 * Rights selection is done through a custom select:
49 [[image:rightsSelection.png]]
50
51 {{velocity}}
52 {{html wiki="true"}}
53 <div class="clearfloats"></div>
54 <div class="rightsUI" id="xwikiobjects">
55 <div class="leftMargin column65">
56 <div class="rightSection">
57 <div class="xclass collapsable">
58 <div class="xclass-content">
59 <table summary="" id="alldocs" class="xwiki-livetable">
60 <tbody
61 <tr><td class="xwiki-livetable-display-container">
62 <table class="xwiki-livetable-display">
63 <thead class="xwiki-livetable-display-header">
64 <tr>
65 <th scope="col" class="xwiki-livetable-display-header-text sortable asc">
66 <a rel="doc.name"><label for="xwiki-livetable-alldocs-filter-1">Type</label></a></th>
67 <th scope="col" class="xwiki-livetable-display-header-text sortable asc">
68 <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">User</label></a></th>
69 <th scope="col" class="xwiki-livetable-display-header-text sortable asc">
70 <a rel="doc.space"><label for="xwiki-livetable-alldocs-filter-2">{{tooltip label="Register"}}Users can create new user accounts{{/tooltip}}</label></a></th>
71 </tr>
72 <tr class="xwiki-livetable-display-filters" id="">
73 <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>
74 <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>
75 <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>
76 </tr>
77 </thead>
78 <tbody id="alldocs-display" class="xwiki-livetable-display-body">
79 <tr class="default">
80 <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td>
81 <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>
82 <td class="actions ">
83 <div class="selection">
84 <div class="rightmenu">
85 #xwikitopmenuentrystart('#' '' 'allow icon')
86 #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allowDefault.png" title="Default Value"/>' '')
87 #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allow.png" title="Allow"/>' '')
88 #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/deny.png" title="Deny"/>' '')
89 #xwikitopmenuentryend()
90 </div>
91 </div>
92 </td>
93 </tr>
94 <tr class="default">
95 <td class="doc_name linkview typetext"><a class="group icon" title="Group" href="#"></a></td>
96 <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>
97 <td class="actions ">
98 <div class="selection">
99 <div class="rightmenu">
100 #xwikitopmenuentrystart('#' '' 'allow icon')
101 #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allowDefault.png" title="Default Value"/>' '')
102 #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/allow.png" title="Allow"/>' '')
103 #submenuitem('#' '<img src="/xwiki/bin/download/Main/Rights/deny.png" title="Deny"/>' '')
104 #xwikitopmenuentryend()
105 </div>
106 </div>
107 </td>
108 </tr>
109 </tbody>
110 <thead class="xwiki-livetable-display-header">
111 <tr class="xwiki-livetable-display-filters" id="">
112 <td class="xwiki-livetable-display-header-filter typenumeric">
113 <span title="Add Special Space Rights" class="addCaption">Add rights to:</span>
114 </td>
115 <td class="xwiki-livetable-display-header-filter">
116 <span class="addRight">
117 <input type="text" title="Add specific user" value="user / group">
118 <input type="image" src="/xwiki/resources/icons/silk/bullet_add.gif" alt="Go" value="Go" class="button" title="Add rights to user">
119 </span>
120 </td>
121 <td class="xwiki-livetable-display-header-filter" colspan="2">
122 <span class="buttonwrapper hidden">
123 <a href="#" class="button">Save</a>
124 <span> or </span>
125 <span class="colorLink">Reset</span>
126 </span>
127 </td>
128 </tr>
129 </thead>
130 </table>
131 </td></tr>
132 </tbody>
133 </table>
134 </div>
135 </div>
136 </div>
137 </div>
138 </div>
139 <div class="clearfloats"></div>
140 {{/html}}
141 {{/velocity}}
142
143 == Adding an user ==
144
145 === Use Case 1 ===
146 * There are no rights for Registered Users:
147 [[image:addUser1.png]]
148 * The autosuggest helps me add an user:
149 [[image:addUser2.png]]
150 * 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:
151 [[image:addUser3.png]]
152 * If I change a right value, that value is marked highlighted. Also, "Edit" right implies "View" right:
153 [[image:addUser4.png]]
154 * If I save, the rights are marked as applied:
155 [[image:addUser5.png]]
156
157 === Use Case 2 ===
158 * There are rights defined for Registered Users:
159 [[image:add2User1.png]]
160 * The added user inherits those rights:
161 [[image:add2User2.png]]
162 * We define our custom rights for that user:
163 [[image:add2User3.png]]