1 package org.apache.archiva.consumers.lucene.test;
2 /*
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 */
20
21 import org.apache.archiva.redback.role.RoleManager;
22 import org.apache.archiva.redback.role.RoleManagerException;
23 import org.apache.archiva.redback.role.model.RedbackRoleModel;
24 import org.springframework.stereotype.Service;
25
26 import java.net.URL;
27
28 /**
29 * @author Olivier Lamy
30 */
31 @Service( "roleManager#test" )
32 public class TestRoleManager
33 implements RoleManager
34 {
35 @Override
36 public void loadRoleModel( URL resourceLocation )
37 throws RoleManagerException
38 {
39 //To change body of implemented methods use File | Settings | File Templates.
40 }
41
42 @Override
43 public void loadRoleModel( RedbackRoleModel model )
44 throws RoleManagerException
45 {
46 //To change body of implemented methods use File | Settings | File Templates.
47 }
48
49 @Override
50 public void createTemplatedRole( String templateId, String resource )
51 throws RoleManagerException
52 {
53 //To change body of implemented methods use File | Settings | File Templates.
54 }
55
56 @Override
57 public void removeTemplatedRole( String templateId, String resource )
58 throws RoleManagerException
59 {
60 //To change body of implemented methods use File | Settings | File Templates.
61 }
62
63 @Override
64 public void updateRole( String templateId, String oldResource, String newResource )
65 throws RoleManagerException
66 {
67 //To change body of implemented methods use File | Settings | File Templates.
68 }
69
70 @Override
71 public void assignRole( String roleId, String principal )
72 throws RoleManagerException
73 {
74 //To change body of implemented methods use File | Settings | File Templates.
75 }
76
77 @Override
78 public void assignRoleByName( String roleName, String principal )
79 throws RoleManagerException
80 {
81 //To change body of implemented methods use File | Settings | File Templates.
82 }
83
84 @Override
85 public void assignTemplatedRole( String templateId, String resource, String principal )
86 throws RoleManagerException
87 {
88 //To change body of implemented methods use File | Settings | File Templates.
89 }
90
91 @Override
92 public void unassignRole( String roleId, String principal )
93 throws RoleManagerException
94 {
95 //To change body of implemented methods use File | Settings | File Templates.
96 }
97
98 @Override
99 public void unassignRoleByName( String roleName, String principal )
100 throws RoleManagerException
101 {
102 //To change body of implemented methods use File | Settings | File Templates.
103 }
104
105 @Override
106 public boolean roleExists( String roleId )
107 throws RoleManagerException
108 {
109 return false; //To change body of implemented methods use File | Settings | File Templates.
110 }
111
112 @Override
113 public boolean templatedRoleExists( String templateId, String resource )
114 throws RoleManagerException
115 {
116 return false; //To change body of implemented methods use File | Settings | File Templates.
117 }
118
119 @Override
120 public RedbackRoleModel getModel()
121 {
122 return null; //To change body of implemented methods use File | Settings | File Templates.
123 }
124
125 @Override
126 public void verifyTemplatedRole( String templateID, String resource )
127 throws RoleManagerException
128 {
129 //To change body of implemented methods use File | Settings | File Templates.
130 }
131
132 @Override
133 public void initialize()
134 {
135 //To change body of implemented methods use File | Settings | File Templates.
136 }
137 }