mirror of https://github.com/apache/archiva.git
get RID of org.apache.maven.archiva packages : security package
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1164822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0f94c8a025
commit
c7e5fea75a
|
@ -37,7 +37,7 @@ import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
||||||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||||
import org.codehaus.plexus.redback.users.User;
|
import org.codehaus.plexus.redback.users.User;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.archiva.admin.mock.MockAuditListener;
|
||||||
import org.apache.archiva.audit.AuditEvent;
|
import org.apache.archiva.audit.AuditEvent;
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
import org.codehaus.plexus.redback.users.User;
|
import org.codehaus.plexus.redback.users.User;
|
||||||
import org.codehaus.plexus.redback.users.memory.SimpleUser;
|
import org.codehaus.plexus.redback.users.memory.SimpleUser;
|
||||||
|
|
|
@ -21,8 +21,7 @@ package org.apache.archiva.rest.api.services;
|
||||||
|
|
||||||
import org.apache.archiva.admin.repository.RepositoryAdminException;
|
import org.apache.archiva.admin.repository.RepositoryAdminException;
|
||||||
import org.apache.archiva.rest.api.model.ManagedRepository;
|
import org.apache.archiva.rest.api.model.ManagedRepository;
|
||||||
import org.apache.archiva.rest.api.model.RemoteRepository;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
|
||||||
import org.codehaus.plexus.redback.authorization.RedbackAuthorization;
|
import org.codehaus.plexus.redback.authorization.RedbackAuthorization;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
|
|
|
@ -19,15 +19,11 @@ package org.apache.archiva.rest.api.services;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.archiva.admin.repository.RepositoryAdminException;
|
|
||||||
import org.apache.archiva.rest.api.model.ManagedRepository;
|
|
||||||
import org.apache.archiva.rest.api.model.RemoteRepository;
|
import org.apache.archiva.rest.api.model.RemoteRepository;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.codehaus.plexus.redback.authorization.RedbackAuthorization;
|
import org.codehaus.plexus.redback.authorization.RedbackAuthorization;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.POST;
|
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import javax.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import javax.ws.rs.Produces;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -40,7 +40,7 @@ import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version
|
* @version
|
||||||
* plexus.component role="org.apache.maven.archiva.security.ServletAuthenticator" role-hint="default"
|
* plexus.component role="org.apache.archiva.security.ServletAuthenticator" role-hint="default"
|
||||||
*/
|
*/
|
||||||
@Service("servletAuthenticator")
|
@Service("servletAuthenticator")
|
||||||
public class ArchivaServletAuthenticator
|
public class ArchivaServletAuthenticator
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -43,7 +43,7 @@ import java.util.List;
|
||||||
* DefaultUserRepositories
|
* DefaultUserRepositories
|
||||||
*
|
*
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
* plexus.component role="org.apache.maven.archiva.security.UserRepositories" role-hint="default"
|
* plexus.component role="org.apache.archiva.security.UserRepositories" role-hint="default"
|
||||||
*/
|
*/
|
||||||
@Service( "userRepositories" )
|
@Service( "userRepositories" )
|
||||||
public class DefaultUserRepositories
|
public class DefaultUserRepositories
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -28,6 +28,6 @@
|
||||||
default-lazy-init="true">
|
default-lazy-init="true">
|
||||||
|
|
||||||
<context:annotation-config />
|
<context:annotation-config />
|
||||||
<context:component-scan base-package="org.apache.maven.archiva.security"/>
|
<context:component-scan base-package="org.apache.archiva.security"/>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -19,12 +19,9 @@ package org.apache.maven.archiva.security;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
|
||||||
import net.sf.ehcache.CacheManager;
|
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
||||||
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
|
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
|
||||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
|
||||||
import org.codehaus.plexus.redback.system.DefaultSecuritySession;
|
import org.codehaus.plexus.redback.system.DefaultSecuritySession;
|
||||||
import org.codehaus.plexus.redback.system.SecuritySession;
|
import org.codehaus.plexus.redback.system.SecuritySession;
|
||||||
import org.codehaus.plexus.redback.users.User;
|
import org.codehaus.plexus.redback.users.User;
|
||||||
|
@ -36,7 +33,6 @@ import org.junit.Test;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import javax.inject.Named;
|
import javax.inject.Named;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArchivaServletAuthenticatorTest
|
* ArchivaServletAuthenticatorTest
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<alias name="securitySystem#testable" alias="securitySystem"/>
|
<alias name="securitySystem#testable" alias="securitySystem"/>
|
||||||
|
|
||||||
<bean name="userRepositories" class="org.apache.maven.archiva.security.DefaultUserRepositories">
|
<bean name="userRepositories" class="org.apache.archiva.security.DefaultUserRepositories">
|
||||||
<property name="securitySystem" ref="securitySystem#testable"/>
|
<property name="securitySystem" ref="securitySystem#testable"/>
|
||||||
<property name="roleManager" ref="roleManager"/>
|
<property name="roleManager" ref="roleManager"/>
|
||||||
<property name="archivaConfiguration" ref="archivaConfiguration"/>
|
<property name="archivaConfiguration" ref="archivaConfiguration"/>
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<alias name="roleTemplateProcessor" alias="roleTemplateProcessor#test"/>
|
<alias name="roleTemplateProcessor" alias="roleTemplateProcessor#test"/>
|
||||||
|
|
||||||
<bean name="servletAuthenticator" class="org.apache.maven.archiva.security.ArchivaServletAuthenticator">
|
<bean name="servletAuthenticator" class="org.apache.archiva.security.ArchivaServletAuthenticator">
|
||||||
<property name="securitySystem" ref="securitySystem#testable"/>
|
<property name="securitySystem" ref="securitySystem#testable"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -29,12 +29,12 @@ import org.apache.commons.codec.Decoder;
|
||||||
import org.apache.commons.codec.DecoderException;
|
import org.apache.commons.codec.DecoderException;
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.security.AccessDeniedException;
|
import org.apache.archiva.security.AccessDeniedException;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.PrincipalNotFoundException;
|
import org.apache.archiva.security.PrincipalNotFoundException;
|
||||||
import org.apache.maven.archiva.security.ServletAuthenticator;
|
import org.apache.archiva.security.ServletAuthenticator;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
||||||
import org.codehaus.plexus.redback.authorization.AuthorizationException;
|
import org.codehaus.plexus.redback.authorization.AuthorizationException;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.maven.archiva.common.ArchivaException;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.ConfigurationNames;
|
import org.apache.maven.archiva.configuration.ConfigurationNames;
|
||||||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||||
|
|
|
@ -24,8 +24,8 @@ import org.apache.archiva.dependency.tree.maven2.DependencyTreeBuilder;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.common.ArchivaException;
|
import org.apache.maven.archiva.common.ArchivaException;
|
||||||
import org.apache.maven.archiva.model.Keys;
|
import org.apache.maven.archiva.model.Keys;
|
||||||
import org.apache.maven.archiva.security.ArchivaXworkUser;
|
import org.apache.archiva.security.ArchivaXworkUser;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.apache.maven.artifact.Artifact;
|
import org.apache.maven.artifact.Artifact;
|
||||||
import org.apache.maven.shared.dependency.tree.DependencyNode;
|
import org.apache.maven.shared.dependency.tree.DependencyNode;
|
||||||
import org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException;
|
import org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.archiva.audit.AuditListener;
|
||||||
import org.apache.archiva.audit.Auditable;
|
import org.apache.archiva.audit.Auditable;
|
||||||
import org.apache.archiva.metadata.repository.RepositorySessionFactory;
|
import org.apache.archiva.metadata.repository.RepositorySessionFactory;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.security.ArchivaXworkUser;
|
import org.apache.archiva.security.ArchivaXworkUser;
|
||||||
import org.apache.struts2.ServletActionContext;
|
import org.apache.struts2.ServletActionContext;
|
||||||
import org.apache.struts2.interceptor.SessionAware;
|
import org.apache.struts2.interceptor.SessionAware;
|
||||||
import org.codehaus.plexus.redback.users.User;
|
import org.codehaus.plexus.redback.users.User;
|
||||||
|
|
|
@ -19,10 +19,10 @@ package org.apache.maven.archiva.web.action;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.archiva.security.AccessDeniedException;
|
import org.apache.archiva.security.AccessDeniedException;
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.PrincipalNotFoundException;
|
import org.apache.archiva.security.PrincipalNotFoundException;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
|
@ -19,7 +19,6 @@ package org.apache.maven.archiva.web.action;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
|
||||||
import com.opensymphony.xwork2.Preparable;
|
import com.opensymphony.xwork2.Preparable;
|
||||||
import com.opensymphony.xwork2.Validateable;
|
import com.opensymphony.xwork2.Validateable;
|
||||||
import org.apache.archiva.audit.AuditEvent;
|
import org.apache.archiva.audit.AuditEvent;
|
||||||
|
@ -48,10 +47,10 @@ import org.apache.maven.archiva.repository.metadata.MetadataTools;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
|
||||||
import org.apache.maven.archiva.security.AccessDeniedException;
|
import org.apache.archiva.security.AccessDeniedException;
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.PrincipalNotFoundException;
|
import org.apache.archiva.security.PrincipalNotFoundException;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
||||||
|
|
|
@ -46,10 +46,10 @@ import org.apache.maven.archiva.repository.metadata.MetadataTools;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
|
||||||
import org.apache.maven.archiva.security.AccessDeniedException;
|
import org.apache.archiva.security.AccessDeniedException;
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.PrincipalNotFoundException;
|
import org.apache.archiva.security.PrincipalNotFoundException;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.apache.maven.model.Model;
|
import org.apache.maven.model.Model;
|
||||||
import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
|
import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
|
||||||
import org.codehaus.plexus.taskqueue.TaskQueueException;
|
import org.codehaus.plexus.taskqueue.TaskQueueException;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.apache.maven.archiva.web.action.admin;
|
||||||
import org.apache.archiva.scheduler.repository.RepositoryArchivaTaskScheduler;
|
import org.apache.archiva.scheduler.repository.RepositoryArchivaTaskScheduler;
|
||||||
import org.apache.archiva.scheduler.repository.RepositoryTask;
|
import org.apache.archiva.scheduler.repository.RepositoryTask;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.plexus.taskqueue.TaskQueueException;
|
import org.codehaus.plexus.taskqueue.TaskQueueException;
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.apache.maven.archiva.web.action.admin;
|
||||||
|
|
||||||
import org.apache.archiva.repository.scanner.RepositoryScanner;
|
import org.apache.archiva.repository.scanner.RepositoryScanner;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.cache.Cache;
|
import org.codehaus.plexus.cache.Cache;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.configuration.Configuration;
|
import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
||||||
import org.apache.maven.archiva.configuration.OrganisationInformation;
|
import org.apache.maven.archiva.configuration.OrganisationInformation;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.plexus.registry.RegistryException;
|
import org.codehaus.plexus.registry.RegistryException;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureAction;
|
import org.codehaus.redback.integration.interceptor.SecureAction;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
||||||
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.functors.ProxyConnectorSelectionPredicate;
|
import org.apache.maven.archiva.configuration.functors.ProxyConnectorSelectionPredicate;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.plexus.registry.RegistryException;
|
import org.codehaus.plexus.registry.RegistryException;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import com.opensymphony.xwork2.Preparable;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.Configuration;
|
import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.LegacyArtifactPath;
|
import org.apache.maven.archiva.configuration.LegacyArtifactPath;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.apache.archiva.web.util.ContextUtils;
|
import org.apache.archiva.web.util.ContextUtils;
|
||||||
import org.apache.struts2.interceptor.ServletRequestAware;
|
import org.apache.struts2.interceptor.ServletRequestAware;
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
||||||
import org.apache.maven.archiva.configuration.NetworkProxyConfiguration;
|
import org.apache.maven.archiva.configuration.NetworkProxyConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.functors.NetworkProxySelectionPredicate;
|
import org.apache.maven.archiva.configuration.functors.NetworkProxySelectionPredicate;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.plexus.registry.RegistryException;
|
import org.codehaus.plexus.registry.RegistryException;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.apache.maven.archiva.web.action.admin.networkproxies;
|
||||||
import com.opensymphony.xwork2.Preparable;
|
import com.opensymphony.xwork2.Preparable;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.NetworkProxyConfiguration;
|
import org.apache.maven.archiva.configuration.NetworkProxyConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureAction;
|
import org.codehaus.redback.integration.interceptor.SecureAction;
|
||||||
|
|
|
@ -19,7 +19,6 @@ package org.apache.maven.archiva.web.action.admin.repositories;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.archiva.admin.AuditInformation;
|
|
||||||
import org.apache.archiva.admin.repository.managed.ManagedRepositoryAdmin;
|
import org.apache.archiva.admin.repository.managed.ManagedRepositoryAdmin;
|
||||||
import org.apache.archiva.audit.Auditable;
|
import org.apache.archiva.audit.Auditable;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
|
@ -27,21 +26,17 @@ import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
|
||||||
import org.apache.maven.archiva.configuration.InvalidConfigurationException;
|
import org.apache.maven.archiva.configuration.InvalidConfigurationException;
|
||||||
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.plexus.redback.users.User;
|
|
||||||
import org.codehaus.plexus.registry.RegistryException;
|
import org.codehaus.plexus.registry.RegistryException;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureAction;
|
import org.codehaus.redback.integration.interceptor.SecureAction;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||||
import org.codehaus.redback.rest.services.RedbackAuthenticationThreadLocal;
|
|
||||||
import org.codehaus.redback.rest.services.RedbackRequestInformation;
|
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.functors.RepositoryConfigurationComparator;
|
import org.apache.maven.archiva.configuration.functors.RepositoryConfigurationComparator;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.apache.archiva.web.util.ContextUtils;
|
import org.apache.archiva.web.util.ContextUtils;
|
||||||
import org.apache.struts2.interceptor.ServletRequestAware;
|
import org.apache.struts2.interceptor.ServletRequestAware;
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.maven.archiva.configuration.IndeterminateConfigurationExceptio
|
||||||
import org.apache.maven.archiva.configuration.RepositoryScanningConfiguration;
|
import org.apache.maven.archiva.configuration.RepositoryScanningConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.functors.FiletypeSelectionPredicate;
|
import org.apache.maven.archiva.configuration.functors.FiletypeSelectionPredicate;
|
||||||
import org.apache.maven.archiva.configuration.functors.FiletypeToMapClosure;
|
import org.apache.maven.archiva.configuration.functors.FiletypeToMapClosure;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.plexus.registry.RegistryException;
|
import org.codehaus.plexus.registry.RegistryException;
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.commons.lang.time.DateUtils;
|
import org.apache.commons.lang.time.DateUtils;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractRepositoryBasedAction;
|
import org.apache.maven.archiva.web.action.AbstractRepositoryBasedAction;
|
||||||
import org.codehaus.plexus.redback.rbac.Resource;
|
import org.codehaus.plexus.redback.rbac.Resource;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureAction;
|
import org.codehaus.redback.integration.interceptor.SecureAction;
|
||||||
|
|
|
@ -25,10 +25,10 @@ import org.apache.archiva.audit.AuditManager;
|
||||||
import org.apache.archiva.metadata.repository.RepositorySession;
|
import org.apache.archiva.metadata.repository.RepositorySession;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.commons.lang.time.DateUtils;
|
import org.apache.commons.lang.time.DateUtils;
|
||||||
import org.apache.maven.archiva.security.AccessDeniedException;
|
import org.apache.archiva.security.AccessDeniedException;
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.PrincipalNotFoundException;
|
import org.apache.archiva.security.PrincipalNotFoundException;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
import org.apache.maven.archiva.web.action.AbstractActionSupport;
|
||||||
import org.apache.struts2.interceptor.ServletRequestAware;
|
import org.apache.struts2.interceptor.ServletRequestAware;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureAction;
|
import org.codehaus.redback.integration.interceptor.SecureAction;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.maven.archiva.security;
|
package org.apache.archiva.security;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -36,10 +36,9 @@ import org.apache.archiva.metadata.model.Scm;
|
||||||
import org.apache.archiva.metadata.repository.memory.TestMetadataResolver;
|
import org.apache.archiva.metadata.repository.memory.TestMetadataResolver;
|
||||||
import org.apache.archiva.metadata.repository.storage.maven2.MavenProjectFacet;
|
import org.apache.archiva.metadata.repository.storage.maven2.MavenProjectFacet;
|
||||||
import org.apache.archiva.metadata.repository.storage.maven2.MavenProjectParent;
|
import org.apache.archiva.metadata.repository.storage.maven2.MavenProjectParent;
|
||||||
import org.apache.maven.archiva.security.UserRepositoriesStub;
|
import org.apache.archiva.security.UserRepositoriesStub;
|
||||||
import org.apache.struts2.StrutsSpringTestCase;
|
import org.apache.struts2.StrutsSpringTestCase;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.apache.archiva.metadata.repository.MetadataRepository;
|
||||||
import org.apache.archiva.metadata.repository.RepositorySession;
|
import org.apache.archiva.metadata.repository.RepositorySession;
|
||||||
import org.apache.archiva.metadata.repository.memory.TestRepositorySessionFactory;
|
import org.apache.archiva.metadata.repository.memory.TestRepositorySessionFactory;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.easymock.MockControl;
|
import org.easymock.MockControl;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.archiva.scheduler.repository.RepositoryTask;
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.Configuration;
|
import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.archiva.web.validator.utils.ValidatorUtil;
|
import org.apache.archiva.web.validator.utils.ValidatorUtil;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
import org.codehaus.plexus.registry.Registry;
|
import org.codehaus.plexus.registry.Registry;
|
||||||
|
|
|
@ -35,17 +35,14 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.RepositoryGroupConfiguration;
|
import org.apache.maven.archiva.configuration.RepositoryGroupConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionTestCase;
|
import org.apache.maven.archiva.web.action.AbstractActionTestCase;
|
||||||
import org.apache.maven.archiva.web.action.AuditEventArgumentsMatcher;
|
import org.apache.maven.archiva.web.action.AuditEventArgumentsMatcher;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||||
import org.codehaus.plexus.redback.users.User;
|
|
||||||
import org.codehaus.plexus.redback.users.jdo.JdoUser;
|
|
||||||
import org.codehaus.plexus.registry.RegistryException;
|
import org.codehaus.plexus.registry.RegistryException;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||||
import org.codehaus.redback.rest.services.RedbackRequestInformation;
|
|
||||||
import org.easymock.MockControl;
|
import org.easymock.MockControl;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.commons.io.FileUtils;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.Configuration;
|
import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.archiva.web.validator.utils.ValidatorUtil;
|
import org.apache.archiva.web.validator.utils.ValidatorUtil;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
import org.codehaus.plexus.registry.Registry;
|
import org.codehaus.plexus.registry.Registry;
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.apache.archiva.metadata.repository.stats.RepositoryStatistics;
|
||||||
import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
|
import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
|
||||||
import org.apache.archiva.reports.RepositoryProblemFacet;
|
import org.apache.archiva.reports.RepositoryProblemFacet;
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.maven.archiva.security.UserRepositoriesStub;
|
import org.apache.archiva.security.UserRepositoriesStub;
|
||||||
import org.apache.maven.archiva.web.action.AbstractActionTestCase;
|
import org.apache.maven.archiva.web.action.AbstractActionTestCase;
|
||||||
import org.easymock.MockControl;
|
import org.easymock.MockControl;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<alias name="repositorySessionFactory#test" alias="repositorySessionFactory"/>
|
<alias name="repositorySessionFactory#test" alias="repositorySessionFactory"/>
|
||||||
|
|
||||||
<bean name="userRepositories#test" class="org.apache.maven.archiva.security.UserRepositoriesStub"/>
|
<bean name="userRepositories#test" class="org.apache.archiva.security.UserRepositoriesStub"/>
|
||||||
|
|
||||||
<alias name="userRepositories#test" alias="userRepositories"/>
|
<alias name="userRepositories#test" alias="userRepositories"/>
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<alias name="repositorySessionFactory#test" alias="repositorySessionFactory"/>
|
<alias name="repositorySessionFactory#test" alias="repositorySessionFactory"/>
|
||||||
|
|
||||||
<bean name="userRepositories#test" class="org.apache.maven.archiva.security.UserRepositoriesStub"/>
|
<bean name="userRepositories#test" class="org.apache.archiva.security.UserRepositoriesStub"/>
|
||||||
|
|
||||||
<alias name="userRepositories#test" alias="userRepositories"/>
|
<alias name="userRepositories#test" alias="userRepositories"/>
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataMerge;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataMerge;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
|
||||||
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
|
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
|
||||||
import org.apache.maven.archiva.security.ServletAuthenticator;
|
import org.apache.archiva.security.ServletAuthenticator;
|
||||||
import org.apache.maven.archiva.webdav.util.MimeTypes;
|
import org.apache.maven.archiva.webdav.util.MimeTypes;
|
||||||
import org.apache.maven.archiva.webdav.util.RepositoryPathUtil;
|
import org.apache.maven.archiva.webdav.util.RepositoryPathUtil;
|
||||||
import org.apache.maven.archiva.webdav.util.WebdavMethodUtil;
|
import org.apache.maven.archiva.webdav.util.WebdavMethodUtil;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.jackrabbit.webdav.DavException;
|
||||||
import org.apache.jackrabbit.webdav.DavServletRequest;
|
import org.apache.jackrabbit.webdav.DavServletRequest;
|
||||||
import org.apache.jackrabbit.webdav.DavSessionProvider;
|
import org.apache.jackrabbit.webdav.DavSessionProvider;
|
||||||
import org.apache.jackrabbit.webdav.WebdavRequest;
|
import org.apache.jackrabbit.webdav.WebdavRequest;
|
||||||
import org.apache.maven.archiva.security.ServletAuthenticator;
|
import org.apache.archiva.security.ServletAuthenticator;
|
||||||
import org.apache.maven.archiva.webdav.util.RepositoryPathUtil;
|
import org.apache.maven.archiva.webdav.util.RepositoryPathUtil;
|
||||||
import org.apache.maven.archiva.webdav.util.WebdavMethodUtil;
|
import org.apache.maven.archiva.webdav.util.WebdavMethodUtil;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.ConfigurationEvent;
|
import org.apache.maven.archiva.configuration.ConfigurationEvent;
|
||||||
import org.apache.maven.archiva.configuration.ConfigurationListener;
|
import org.apache.maven.archiva.configuration.ConfigurationListener;
|
||||||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.security.ServletAuthenticator;
|
import org.apache.archiva.security.ServletAuthenticator;
|
||||||
import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
|
import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.maven.archiva.webdav.util;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import junit.framework.TestCase;
|
||||||
import org.apache.jackrabbit.webdav.DavSessionProvider;
|
import org.apache.jackrabbit.webdav.DavSessionProvider;
|
||||||
import org.apache.jackrabbit.webdav.WebdavRequest;
|
import org.apache.jackrabbit.webdav.WebdavRequest;
|
||||||
import org.apache.jackrabbit.webdav.WebdavRequestImpl;
|
import org.apache.jackrabbit.webdav.WebdavRequestImpl;
|
||||||
import org.apache.maven.archiva.security.ServletAuthenticator;
|
import org.apache.archiva.security.ServletAuthenticator;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
|
import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.maven.archiva.webdav;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.archiva.security.ArchivaServletAuthenticator;
|
import org.apache.archiva.security.ArchivaServletAuthenticator;
|
||||||
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
|
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
|
||||||
|
|
||||||
public class MockServletAuthenticator
|
public class MockServletAuthenticator
|
||||||
|
|
|
@ -35,8 +35,8 @@ import org.apache.jackrabbit.webdav.DavSessionProvider;
|
||||||
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
|
||||||
import org.apache.maven.archiva.configuration.Configuration;
|
import org.apache.maven.archiva.configuration.Configuration;
|
||||||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.security.ServletAuthenticator;
|
import org.apache.archiva.security.ServletAuthenticator;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
import org.codehaus.plexus.redback.authentication.AuthenticationException;
|
||||||
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
import org.codehaus.plexus.redback.authentication.AuthenticationResult;
|
||||||
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
|
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
|
||||||
|
|
|
@ -21,9 +21,9 @@ package org.apache.archiva.web.xmlrpc.security;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.apache.xmlrpc.XmlRpcException;
|
import org.apache.xmlrpc.XmlRpcException;
|
||||||
import org.apache.xmlrpc.XmlRpcRequest;
|
import org.apache.xmlrpc.XmlRpcRequest;
|
||||||
import org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl;
|
import org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl;
|
||||||
|
|
|
@ -21,9 +21,9 @@ package org.apache.archiva.web.xmlrpc.security;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.maven.archiva.security.ArchivaSecurityException;
|
import org.apache.archiva.security.ArchivaSecurityException;
|
||||||
import org.apache.maven.archiva.security.PrincipalNotFoundException;
|
import org.apache.archiva.security.PrincipalNotFoundException;
|
||||||
import org.apache.maven.archiva.security.UserRepositories;
|
import org.apache.archiva.security.UserRepositories;
|
||||||
import org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler;
|
import org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler;
|
||||||
|
|
||||||
public class XmlRpcUserRepositories
|
public class XmlRpcUserRepositories
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.apache.archiva.xmlrpc.security;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import org.apache.archiva.web.xmlrpc.security.XmlRpcAuthenticator;
|
import org.apache.archiva.web.xmlrpc.security.XmlRpcAuthenticator;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.apache.xmlrpc.XmlRpcRequest;
|
import org.apache.xmlrpc.XmlRpcRequest;
|
||||||
import org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl;
|
import org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
|
|
|
@ -54,7 +54,7 @@ import org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryConte
|
||||||
import org.apache.maven.archiva.repository.content.ManagedLegacyRepositoryContent;
|
import org.apache.maven.archiva.repository.content.ManagedLegacyRepositoryContent;
|
||||||
import org.apache.maven.archiva.repository.content.PathParser;
|
import org.apache.maven.archiva.repository.content.PathParser;
|
||||||
import org.apache.maven.archiva.repository.layout.LayoutException;
|
import org.apache.maven.archiva.repository.layout.LayoutException;
|
||||||
import org.apache.maven.archiva.security.ArchivaRoleConstants;
|
import org.apache.archiva.security.ArchivaRoleConstants;
|
||||||
import org.codehaus.plexus.redback.role.RoleManager;
|
import org.codehaus.plexus.redback.role.RoleManager;
|
||||||
import org.codehaus.plexus.registry.Registry;
|
import org.codehaus.plexus.registry.Registry;
|
||||||
import org.easymock.MockControl;
|
import org.easymock.MockControl;
|
||||||
|
|
Loading…
Reference in New Issue