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