Wiki source code of Rights Management Proposal

Version 15.1 by Ecaterina Valica on 2010/05/13 11:16

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