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.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;
29 * @author Olivier Lamy
31 @Service("RoleManagerStub")
32 public class RoleManagerStub
33 implements RoleManager
36 public void loadRoleModel( URL resourceLocation )
37 throws RoleManagerException
39 //To change body of implemented methods use File | Settings | File Templates.
43 public void loadRoleModel( RedbackRoleModel model )
44 throws RoleManagerException
46 //To change body of implemented methods use File | Settings | File Templates.
50 public void createTemplatedRole( String templateId, String resource )
51 throws RoleManagerException
53 //To change body of implemented methods use File | Settings | File Templates.
57 public void removeTemplatedRole( String templateId, String resource )
58 throws RoleManagerException
60 //To change body of implemented methods use File | Settings | File Templates.
64 public void moveTemplatedRole( String templateId, String oldResource, String newResource )
65 throws RoleManagerException
67 //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.
78 public void assignRoleByName( String roleName, String principal )
79 throws RoleManagerException
81 //To change body of implemented methods use File | Settings | File Templates.
85 public void assignTemplatedRole( String templateId, String resource, String principal )
86 throws RoleManagerException
88 //To change body of implemented methods use File | Settings | File Templates.
92 public void unassignRole( String roleId, String principal )
93 throws RoleManagerException
95 //To change body of implemented methods use File | Settings | File Templates.
99 public void unassignRoleByName( String roleName, String principal )
100 throws RoleManagerException
102 //To change body of implemented methods use File | Settings | File Templates.
106 public boolean roleExists( String roleId )
107 throws RoleManagerException
109 return false; //To change body of implemented methods use File | Settings | File Templates.
113 public boolean templatedRoleExists( String templateId, String resource )
114 throws RoleManagerException
116 return false; //To change body of implemented methods use File | Settings | File Templates.
120 public RedbackRoleModel getModel()
122 return null; //To change body of implemented methods use File | Settings | File Templates.
126 public void verifyTemplatedRole( String templateID, String resource )
127 throws RoleManagerException
129 //To change body of implemented methods use File | Settings | File Templates.
133 public void initialize()
135 //To change body of implemented methods use File | Settings | File Templates.