mirror of https://github.com/apache/archiva.git
move to package o.a.a.r redback module redback-rbac-role-manager
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1310912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5ad9e91c77
commit
73f15c6bc7
|
@ -18,8 +18,8 @@ package org.apache.archiva.consumers.lucene.test;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.archiva.metadata.repository.MetadataRepositoryException;
|
|||
import org.apache.archiva.metadata.repository.RepositorySession;
|
||||
import org.apache.archiva.metadata.repository.RepositorySessionFactory;
|
||||
import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.apache.archiva.scheduler.repository.RepositoryArchivaTaskScheduler;
|
||||
import org.apache.archiva.scheduler.repository.RepositoryTask;
|
||||
import org.apache.archiva.security.common.ArchivaRoleConstants;
|
||||
|
@ -45,8 +46,7 @@ import org.apache.maven.index.NexusIndexer;
|
|||
import org.apache.maven.index.context.IndexCreator;
|
||||
import org.apache.maven.index.context.IndexingContext;
|
||||
import org.apache.maven.index.context.UnsupportedExistingLuceneIndexException;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.taskqueue.TaskQueueException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
|
|||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.users.memory.SimpleUser;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -28,8 +28,8 @@ import org.apache.archiva.redback.users.UserNotFoundException;
|
|||
import org.apache.archiva.security.common.ArchivaRoleConstants;
|
||||
import org.apache.archiva.redback.authentication.AuthenticationResult;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationException;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.system.DefaultSecuritySession;
|
||||
import org.codehaus.plexus.redback.system.SecuritySession;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
|
|
|
@ -24,13 +24,13 @@ import junit.framework.TestCase;
|
|||
import net.sf.ehcache.CacheManager;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.security.common.ArchivaRoleConstants;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.archiva.configuration.ArchivaConfiguration;
|
||||
import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.junit.Before;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.archiva.security;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<property name="userManager" ref="userManager#memory"/>
|
||||
</bean>
|
||||
|
||||
<bean name="roleManager" class="org.codehaus.plexus.redback.role.DefaultRoleManager">
|
||||
<bean name="roleManager" class="org.apache.archiva.redback.role.DefaultRoleManager">
|
||||
<property name="rbacManager" ref="rBACManager#memory"/>
|
||||
<property name="modelProcessor" ref="roleModelProcessor"/>
|
||||
<property name="templateProcessor" ref="roleTemplateProcessor#test"/>
|
||||
|
@ -61,13 +61,13 @@
|
|||
<property name="rbacImpl" ref="rBACManager#memory"/>
|
||||
</bean>
|
||||
|
||||
<bean name="roleModelProcessor" class="org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor">
|
||||
<bean name="roleModelProcessor" class="org.apache.archiva.redback.role.processor.DefaultRoleModelProcessor">
|
||||
<property name="rbacManager" ref="rBACManager#memory"/>
|
||||
</bean>
|
||||
|
||||
<alias name="roleModelProcessor" alias="roleModelProcessor#test"/>
|
||||
|
||||
<bean name="roleTemplateProcessor" class="org.codehaus.plexus.redback.role.template.DefaultRoleTemplateProcessor">
|
||||
<bean name="roleTemplateProcessor" class="org.apache.archiva.redback.role.template.DefaultRoleTemplateProcessor">
|
||||
<property name="rbacManager" ref="rBACManager#memory"/>
|
||||
</bean>
|
||||
|
||||
|
|
|
@ -24,13 +24,13 @@ import org.apache.archiva.configuration.ArchivaConfiguration;
|
|||
import org.apache.archiva.configuration.ConfigurationNames;
|
||||
import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.security.common.ArchivaRoleConstants;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.system.check.EnvironmentCheck;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.codehaus.plexus.registry.Registry;
|
||||
|
|
|
@ -18,18 +18,12 @@ package org.apache.archiva.web.rss;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.metadata.repository.RepositorySession;
|
||||
import org.apache.archiva.metadata.repository.RepositorySessionFactory;
|
||||
import org.apache.archiva.security.ArchivaSecurityException;
|
||||
import org.apache.archiva.security.UserRepositories;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Olivier Lamy
|
||||
|
|
|
@ -25,12 +25,12 @@ import org.apache.archiva.admin.repository.DefaultRepositoryCommonValidator;
|
|||
import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin;
|
||||
import org.apache.archiva.configuration.ArchivaConfiguration;
|
||||
import org.apache.archiva.configuration.Configuration;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.apache.archiva.scheduler.repository.RepositoryArchivaTaskScheduler;
|
||||
import org.apache.archiva.scheduler.repository.RepositoryTask;
|
||||
import org.apache.archiva.security.common.ArchivaRoleConstants;
|
||||
import org.apache.archiva.web.validator.utils.ValidatorUtil;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.registry.Registry;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -41,8 +41,8 @@ import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
|
|||
import org.apache.archiva.configuration.RepositoryGroupConfiguration;
|
||||
import org.apache.archiva.web.action.AbstractActionTestCase;
|
||||
import org.apache.archiva.web.action.AuditEventArgumentsMatcher;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.registry.RegistryException;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.apache.archiva.security.common.ArchivaRoleConstants;
|
|||
import org.apache.archiva.web.validator.utils.ValidatorUtil;
|
||||
import org.apache.archiva.webtest.memory.TestRepositorySessionFactory;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.apache.archiva.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.registry.Registry;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
Loading…
Reference in New Issue