move user concerns to a specific package
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72e1da8091
commit
56b338cb19
|
@ -20,8 +20,7 @@ package org.apache.archiva.redback.authentication.ldap;
|
|||
*/
|
||||
|
||||
import org.apache.archiva.redback.authentication.AbstractAuthenticator;
|
||||
import org.apache.archiva.redback.authentication.AuthenticationConstants;
|
||||
import org.apache.archiva.redback.common.ldap.UserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.user.UserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.connection.LdapConnectionFactory;
|
||||
import org.apache.archiva.redback.configuration.UserConfiguration;
|
||||
import org.apache.archiva.redback.configuration.UserConfigurationKeys;
|
||||
|
@ -45,8 +44,6 @@ import javax.naming.NamingException;
|
|||
import javax.naming.directory.DirContext;
|
||||
import javax.naming.directory.SearchControls;
|
||||
import javax.naming.directory.SearchResult;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* LdapBindAuthenticator:
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<property name="userConf" ref="userConfiguration#default"/>
|
||||
</bean>
|
||||
|
||||
<bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.LdapUserMapper">
|
||||
<bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.user.LdapUserMapper">
|
||||
<property name="emailAttribute" value="mail"/>
|
||||
<property name="fullNameAttribute" value="givenName"/>
|
||||
<property name="passwordAttribute" value="userPassword"/>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.archiva.redback.common.ldap;
|
||||
package org.apache.archiva.redback.common.ldap.user;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.archiva.redback.common.ldap;
|
||||
package org.apache.archiva.redback.common.ldap.user;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
|
@ -19,6 +19,8 @@ package org.apache.archiva.redback.common.ldap;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.LdapUtils;
|
||||
import org.apache.archiva.redback.common.ldap.MappingException;
|
||||
import org.apache.archiva.redback.configuration.UserConfiguration;
|
||||
import org.apache.archiva.redback.configuration.UserConfigurationKeys;
|
||||
import org.apache.archiva.redback.users.User;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.archiva.redback.common.ldap;
|
||||
package org.apache.archiva.redback.common.ldap.user;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
|
@ -19,6 +19,7 @@ package org.apache.archiva.redback.common.ldap;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.MappingException;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
|
||||
import javax.naming.directory.Attributes;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.archiva.redback.common.ldap;
|
||||
package org.apache.archiva.redback.common.ldap.user;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -20,7 +20,7 @@ package org.apache.archiva.redback.common.ldap;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.archiva.redback.common.ldap.LdapUserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUserMapper;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
|
|
@ -20,8 +20,8 @@ package org.apache.archiva.redback.users.ldap;
|
|||
*/
|
||||
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.UserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.user.UserMapper;
|
||||
import org.apache.archiva.redback.users.AbstractUserManager;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.archiva.redback.users.ldap;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.UserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.user.UserMapper;
|
||||
import org.apache.archiva.redback.users.AbstractUserQuery;
|
||||
|
||||
public class LdapUserQuery
|
||||
|
|
|
@ -33,9 +33,9 @@ import javax.naming.directory.DirContext;
|
|||
import javax.naming.directory.SearchControls;
|
||||
import javax.naming.directory.SearchResult;
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.LdapUserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.UserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUserMapper;
|
||||
import org.apache.archiva.redback.common.ldap.user.UserMapper;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.common.ldap.MappingException;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.archiva.redback.users.ldap.ctl;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUser;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.common.ldap.MappingException;
|
||||
import org.apache.archiva.redback.users.ldap.LdapUserQuery;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.archiva.redback.users.ldap.service;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUser;
|
||||
import org.apache.archiva.redback.components.cache.builder.CacheBuilder;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -65,7 +65,7 @@ public class DefaultLdapCacheService
|
|||
}
|
||||
|
||||
/**
|
||||
* @see LdapCacheService#addUser(org.apache.archiva.redback.common.ldap.LdapUser)
|
||||
* @see LdapCacheService#addUser(org.apache.archiva.redback.common.ldap.user.LdapUser)
|
||||
*/
|
||||
public void addUser( LdapUser user )
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.apache.archiva.redback.users.ldap.service;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.common.ldap.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUser;
|
||||
|
||||
/**
|
||||
* LdapCacheService
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.archiva.redback.users.ldap.service;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.archiva.redback.common.ldap.LdapUser;
|
||||
import org.apache.archiva.redback.common.ldap.user.LdapUser;
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<property name="userConf" ref="userConfiguration#default"/>
|
||||
</bean>
|
||||
|
||||
<bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.LdapUserMapper">
|
||||
<bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.user.LdapUserMapper">
|
||||
<property name="emailAttribute" value="mail"/>
|
||||
<property name="fullNameAttribute" value="givenName"/>
|
||||
<property name="passwordAttribute" value="userPassword"/>
|
||||
|
|
Loading…
Reference in New Issue