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