1 package org.apache.archiva.consumers.lucene.test;
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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
21 import org.codehaus.plexus.redback.role.RoleManager;
22 import org.codehaus.plexus.redback.role.RoleManagerException;
23 import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
24 import org.springframework.stereotype.Service;
29 * @author Olivier Lamy
31 @Service( "roleManager#test" )
32 public class TestRoleManager implements RoleManager
34 public void loadRoleModel( URL resourceLocation )
35 throws RoleManagerException
37 //To change body of implemented methods use File | Settings | File Templates.
40 public void loadRoleModel( RedbackRoleModel model )
41 throws RoleManagerException
43 //To change body of implemented methods use File | Settings | File Templates.
46 public void createTemplatedRole( String templateId, String resource )
47 throws RoleManagerException
49 //To change body of implemented methods use File | Settings | File Templates.
52 public void removeTemplatedRole( String templateId, String resource )
53 throws RoleManagerException
55 //To change body of implemented methods use File | Settings | File Templates.
58 public void updateRole( String templateId, String oldResource, String newResource )
59 throws RoleManagerException
61 //To change body of implemented methods use File | Settings | File Templates.
64 public void assignRole( String roleId, String principal )
65 throws RoleManagerException
67 //To change body of implemented methods use File | Settings | File Templates.
70 public void assignRoleByName( String roleName, String principal )
71 throws RoleManagerException
73 //To change body of implemented methods use File | Settings | File Templates.
76 public void assignTemplatedRole( String templateId, String resource, String principal )
77 throws RoleManagerException
79 //To change body of implemented methods use File | Settings | File Templates.
82 public void unassignRole( String roleId, String principal )
83 throws RoleManagerException
85 //To change body of implemented methods use File | Settings | File Templates.
88 public void unassignRoleByName( String roleName, String principal )
89 throws RoleManagerException
91 //To change body of implemented methods use File | Settings | File Templates.
94 public boolean roleExists( String roleId )
95 throws RoleManagerException
97 return false; //To change body of implemented methods use File | Settings | File Templates.
100 public boolean templatedRoleExists( String templateId, String resource )
101 throws RoleManagerException
103 return false; //To change body of implemented methods use File | Settings | File Templates.
106 public RedbackRoleModel getModel()
108 return null; //To change body of implemented methods use File | Settings | File Templates.
111 public void verifyTemplatedRole( String templateID, String resource )
112 throws RoleManagerException
114 //To change body of implemented methods use File | Settings | File Templates.