1 package org.apache.archiva.web.rss;
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.apache.archiva.metadata.repository.RepositorySession;
22 import org.apache.archiva.metadata.repository.RepositorySessionFactory;
23 import org.apache.archiva.security.ArchivaSecurityException;
24 import org.apache.archiva.security.UserRepositories;
25 import org.codehaus.plexus.redback.role.RoleManager;
26 import org.codehaus.plexus.redback.role.RoleManagerException;
27 import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
28 import org.springframework.stereotype.Service;
31 import java.util.Collections;
32 import java.util.List;
35 * @author Olivier Lamy
37 @Service("RoleManagerStub")
38 public class RoleManagerStub
39 implements RoleManager
41 public void loadRoleModel( URL resourceLocation )
42 throws RoleManagerException
44 //To change body of implemented methods use File | Settings | File Templates.
47 public void loadRoleModel( RedbackRoleModel model )
48 throws RoleManagerException
50 //To change body of implemented methods use File | Settings | File Templates.
53 public void createTemplatedRole( String templateId, String resource )
54 throws RoleManagerException
56 //To change body of implemented methods use File | Settings | File Templates.
59 public void removeTemplatedRole( String templateId, String resource )
60 throws RoleManagerException
62 //To change body of implemented methods use File | Settings | File Templates.
65 public void updateRole( String templateId, String oldResource, String newResource )
66 throws RoleManagerException
68 //To change body of implemented methods use File | Settings | File Templates.
71 public void assignRole( String roleId, String principal )
72 throws RoleManagerException
74 //To change body of implemented methods use File | Settings | File Templates.
77 public void assignRoleByName( String roleName, String principal )
78 throws RoleManagerException
80 //To change body of implemented methods use File | Settings | File Templates.
83 public void assignTemplatedRole( String templateId, String resource, String principal )
84 throws RoleManagerException
86 //To change body of implemented methods use File | Settings | File Templates.
89 public void unassignRole( String roleId, String principal )
90 throws RoleManagerException
92 //To change body of implemented methods use File | Settings | File Templates.
95 public void unassignRoleByName( String roleName, String principal )
96 throws RoleManagerException
98 //To change body of implemented methods use File | Settings | File Templates.
101 public boolean roleExists( String roleId )
102 throws RoleManagerException
104 return false; //To change body of implemented methods use File | Settings | File Templates.
107 public boolean templatedRoleExists( String templateId, String resource )
108 throws RoleManagerException
110 return false; //To change body of implemented methods use File | Settings | File Templates.
113 public RedbackRoleModel getModel()
115 return null; //To change body of implemented methods use File | Settings | File Templates.
118 public void verifyTemplatedRole( String templateID, String resource )
119 throws RoleManagerException
121 //To change body of implemented methods use File | Settings | File Templates.