]> source.dussan.org Git - archiva.git/blob
e236e8218eaff4e300bacd7fa365ef441c2f9a31
[archiva.git] /
1 <!--
2   ~ Licensed to the Apache Software Foundation (ASF) under one
3   ~ or more contributor license agreements.  See the NOTICE file
4   ~ distributed with this work for additional information
5   ~ regarding copyright ownership.  The ASF licenses this file
6   ~ to you under the Apache License, Version 2.0 (the
7   ~ "License"); you may not use this file except in compliance
8   ~ with the License.  You may obtain a copy of the License at
9   ~
10   ~  http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing,
13   ~ software distributed under the License is distributed on an
14   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   ~ KIND, either express or implied.  See the License for the
16   ~ specific language governing permissions and limitations
17   ~ under the License.
18   -->
19 <redback-role-model>
20   <modelVersion>1.0.0</modelVersion>
21   <applications>
22     <application>
23       <id>Archiva</id>
24       <version>1.0</version>
25       <operations>
26         <operation>
27           <id>archiva-manage-users</id>
28           <name>archiva-manage-users</name>
29           <description>Manage Archiva Users</description>
30         </operation>
31         <operation>
32           <id>archiva-manage-configuration</id>
33           <name>archiva-manage-configuration</name>
34           <description>Manage Archiva Configuration</description>
35         </operation>
36         <operation>
37           <id>archiva-regenerate-index</id>
38           <name>archiva-regenerate-index</name>
39           <description>Regenerate Archiva Index</description>
40         </operation>
41         <operation>
42           <id>archiva-run-indexer</id>
43           <name>archiva-run-indexer</name>
44           <description>Run Archiva Indexer</description>
45         </operation>
46         <operation>
47           <id>archiva-merge-repository</id>
48           <name>archiva-merge-repository</name>
49           <description>Archiva Merge Repository</description>
50         </operation>
51         <operation>
52           <id>archiva-delete-namespace</id>
53           <name>archiva-delete-namespace</name>
54           <description>Delete Namespace (GroupID) from Archiva Repository</description>
55         </operation>
56         <operation>
57           <id>archiva-delete-project</id>
58           <name>archiva-delete-project</name>
59           <description>Delete Project (all versions) from Archiva Repository</description>
60         </operation>
61         <operation>
62           <id>archiva-delete-version</id>
63           <name>archiva-delete-version</name>
64           <description>Delete Version from Archiva Repository</description>
65         </operation>
66         <operation>
67           <id>archiva-delete-artifact</id>
68           <name>archiva-delete-artifact</name>
69           <description>Delete Artifact</description>
70         </operation>
71         <operation>
72           <id>archiva-add-artifact</id>
73           <name>archiva-add-artifact</name>
74           <description>Add artifact to Archiva Repository</description>
75         </operation>
76         <operation>
77           <id>archiva-access-reports</id>
78           <name>archiva-access-reports</name>
79           <description>Access Archiva Reports</description>
80         </operation>
81         <operation>
82           <id>archiva-add-repository</id>
83           <name>archiva-add-repository</name>
84           <description>Add Archiva Repository</description>
85         </operation>
86         <operation>
87           <id>archiva-delete-repository</id>
88           <name>archiva-delete-repository</name>
89           <description>Delete Archiva Repository</description>
90         </operation>
91         <operation>
92           <id>archiva-read-repository</id>
93           <name>archiva-read-repository</name>
94           <description>Read Archiva Repository</description>
95         </operation>
96         <operation>
97           <id>archiva-edit-repository</id>
98           <name>archiva-edit-repository</name>
99           <description>Edit Archiva Repository</description>
100         </operation>
101         <operation>
102           <id>archiva-upload-file</id>
103           <name>archiva-upload-file</name>
104           <description>Upload File to Archiva</description>
105         </operation>
106         <operation>
107           <id>archiva-access-repository</id>
108           <name>archiva-access-repository</name>
109           <description>Access Archiva Repository</description>
110         </operation>
111         <operation>
112           <id>archiva-add-metadata</id>
113           <name>archiva-add-metadata</name>
114           <description>Add Repository Metadata</description>
115         </operation>
116         <operation>
117           <id>archiva-delete-metadata</id>
118           <name>archiva-delete-metadata</name>
119           <description>Delete Repository Metadata</description>
120         </operation>
121         <operation>
122           <id>archiva-view-audit-logs</id>
123           <name>archiva-view-audit-logs</name>
124           <description>View Archiva Audit Logs</description>
125         </operation>
126         <operation>
127           <id>archiva-guest</id>
128           <name>archiva-guest</name>
129           <description>Active Archiva Guest</description>
130         </operation>
131       </operations>
132       <roles>
133         <role>
134           <id>archiva-system-administrator</id>
135           <name>Archiva System Administrator</name>
136           <permanent>true</permanent>
137           <assignable>false</assignable>
138           <permissions>
139             <permission>
140               <id>archiva-manage-configuration</id>
141               <name>archiva-manage-configuration</name>
142               <operation>archiva-manage-configuration</operation>
143               <resource>global</resource>
144               <permanent>true</permanent>
145             </permission>
146             <permission>
147               <id>archiva-manage-users</id>
148               <name>archiva-manage-users</name>
149               <operation>archiva-manage-users</operation>
150               <resource>global</resource>
151               <permanent>true</permanent>
152             </permission>
153             <permission>
154               <id>archiva-run-indexer</id>
155               <name>archiva-run-indexer</name>
156               <operation>archiva-run-indexer</operation>
157               <resource>global</resource>
158               <permanent>true</permanent>
159             </permission>
160             <permission>
161               <id>archiva-regenerate-index</id>
162               <name>archiva-regenerate-index</name>
163               <operation>archiva-regenerate-index</operation>
164               <resource>global</resource>
165               <permanent>true</permanent>
166             </permission>
167             <permission>
168               <id>archiva-access-reports</id>
169               <name>archiva-access-reports</name>
170               <operation>archiva-access-reports</operation>
171               <resource>global</resource>
172               <permanent>true</permanent>
173             </permission>
174           </permissions>
175           <childRoles>
176             <childRole>archiva-global-repository-manager</childRole>
177           </childRoles>
178           <parentRoles>
179             <parentRole>system-administrator</parentRole>
180           </parentRoles>
181         </role>
182         <role>
183           <id>archiva-user-administrator</id>
184           <name>Archiva User Administrator</name>
185           <permanent>true</permanent>
186           <assignable>false</assignable>
187           <permissions>
188             <permission>
189               <id>archiva-guest</id>
190               <name>Archiva Guest Permission</name>
191               <operation>archiva-guest</operation>
192               <resource>global</resource>
193               <permanent>true</permanent>
194             </permission>
195             <permission>
196               <id>archiva-manage-users</id>
197               <name>archiva-manage-users</name>
198               <operation>archiva-manage-users</operation>
199               <resource>global</resource>
200               <permanent>true</permanent>
201             </permission>
202           </permissions>
203           <parentRoles>
204             <parentRole>user-administrator</parentRole>
205           </parentRoles>
206         </role>
207         <role>
208           <id>archiva-guest</id>
209           <name>Archiva Guest</name>
210           <permanent>true</permanent>
211           <assignable>false</assignable>
212           <permissions>
213             <permission>
214               <id>archiva-guest</id>
215               <name>Archiva Guest Permission</name>
216               <operation>archiva-guest</operation>
217               <resource>global</resource>
218               <permanent>true</permanent>
219             </permission>
220           </permissions>
221           <parentRoles>
222             <parentRole>guest</parentRole>
223           </parentRoles>
224         </role>
225         <role>
226           <id>archiva-global-repository-manager</id>
227           <name>Global Repository Manager</name>
228           <permanent>true</permanent>
229           <assignable>true</assignable>
230           <permissions>
231             <permission>
232               <id>archiva-add-repository</id>
233               <name>Archiva Add Repository</name>
234               <operation>archiva-add-repository</operation>
235               <resource>global</resource>
236               <permanent>true</permanent>
237             </permission>
238           </permissions>
239           <childRoles>
240             <childRole>archiva-global-repository-observer</childRole>
241           </childRoles>
242         </role>
243         <role>
244           <id>archiva-global-repository-observer</id>
245           <name>Global Repository Observer</name>
246           <permanent>true</permanent>
247           <assignable>true</assignable>
248         </role>
249       </roles>
250       <templates>
251         <template>
252           <id>archiva-repository-manager</id>
253           <namePrefix>Repository Manager</namePrefix>
254           <assignable>true</assignable>
255           <permissions>
256             <permission>
257               <id>archiva-delete-namespace</id>
258               <name>Archiva Delete Namespace (GroupId)</name>
259               <operation>archiva-delete-namespace</operation>
260               <resource>${resource}</resource>
261             </permission>
262             <permission>
263               <id>archiva-delete-project</id>
264               <name>Archiva Delete Project</name>
265               <operation>archiva-delete-project</operation>
266               <resource>${resource}</resource>
267             </permission>
268             <permission>
269               <id>archiva-delete-version</id>
270               <name>Archiva Delete Version</name>
271               <operation>archiva-delete-version</operation>
272               <resource>${resource}</resource>
273             </permission>
274             <permission>
275               <id>archiva-delete-artifact</id>
276               <name>Delete Artifact</name>
277               <operation>archiva-delete-artifact</operation>
278               <resource>${resource}</resource>
279             </permission>
280             <permission>
281               <id>archiva-add-artifact</id>
282               <name>Add Artifact</name>
283               <operation>archiva-add-artifact</operation>
284               <resource>${resource}</resource>
285             </permission>
286             <permission>
287               <id>archiva-edit-repository</id>
288               <name>Archiva Edit Repository</name>
289               <operation>archiva-edit-repository</operation>
290               <resource>${resource}</resource>
291             </permission>
292             <permission>
293               <id>archiva-delete-repository</id>
294               <name>Archiva Delete Repository</name>
295               <operation>archiva-delete-repository</operation>
296               <resource>${resource}</resource>
297             </permission>
298             <permission>
299               <id>archiva-upload-file</id>
300               <name>Archiva Upload File to Archiva</name>
301               <operation>archiva-upload-file</operation>
302               <resource>global</resource>
303             </permission>
304             <permission>
305               <id>archiva-view-audit-logs</id>
306               <name>Archiva View Audit Logs</name>
307               <operation>archiva-view-audit-logs</operation>
308               <resource>${resource}</resource>
309             </permission>
310             <permission>
311               <id>archiva-add-metadata</id>
312               <name>Archiva Add Repository Metadata</name>
313               <operation>archiva-add-metadata</operation>
314               <resource>${resource}</resource>
315             </permission>
316             <permission>
317               <id>archiva-delete-metadata</id>
318               <name>Archiva Delete Repository Metadata</name>
319               <operation>archiva-delete-metadata</operation>
320               <resource>${resource}</resource>
321             </permission>
322             <permission>
323               <id>archiva-merge-repository</id>
324               <name>Archiva Merge Repository</name>
325               <operation>archiva-merge-repository</operation>
326               <resource>${resource}</resource>
327             </permission>
328           </permissions>
329           <childTemplates>
330             <childTemplate>archiva-repository-observer</childTemplate>
331           </childTemplates>
332           <parentRoles>
333             <parentRole>archiva-global-repository-manager</parentRole>
334           </parentRoles>
335         </template>
336         <template>
337           <id>archiva-repository-observer</id>
338           <namePrefix>Repository Observer</namePrefix>
339           <assignable>true</assignable>
340           <permissions>
341             <permission>
342               <id>archiva-read-repository</id>
343               <name>Archiva Read Repository</name>
344               <operation>archiva-read-repository</operation>
345               <resource>${resource}</resource>
346             </permission>
347           </permissions>
348           <parentRoles>
349             <parentRole>archiva-global-repository-observer</parentRole>
350           </parentRoles>
351         </template>
352       </templates>
353     </application>
354   </applications>
355 </redback-role-model>