Wiki source code of Rights Management Proposal

Version 11.1 by Ecaterina Valica on 2010/05/13 11:13

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