]> source.dussan.org Git - archiva.git/commitdiff
start moving package to org.apache.archiva namespace
authorOlivier Lamy <olamy@apache.org>
Sat, 7 Apr 2012 13:12:48 +0000 (13:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 7 Apr 2012 13:12:48 +0000 (13:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310759 13f79535-47bb-0310-9956-ffa450edef68

108 files changed:
redback-authorization/redback-authorization-api/src/main/java/org/codehaus/plexus/redback/authorization/AuthorizationDataSource.java
redback-common/redback-common-ldap/src/main/java/org/codehaus/plexus/redback/common/ldap/LdapUser.java
redback-common/redback-common-ldap/src/main/java/org/codehaus/plexus/redback/common/ldap/LdapUserMapper.java
redback-common/redback-common-ldap/src/main/java/org/codehaus/plexus/redback/common/ldap/UserMapper.java
redback-data-management/src/main/java/org/codehaus/plexus/redback/management/DataManagementTool.java
redback-data-management/src/main/java/org/codehaus/plexus/redback/management/JdoDataManagementTool.java
redback-data-management/src/test/java/org/codehaus/plexus/redback/management/DataManagementTest.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/checks/security/AdminAutoCreateCheck.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/checks/security/GuestUserEnvironmentCheck.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/checks/security/LockedAdminEnvironmentCheck.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/filter/authentication/HttpAuthenticator.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/filter/authentication/digest/HttpDigestAuthentication.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/model/AdminEditUserCredentials.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/model/EditUserCredentials.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/model/UserCredentials.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/reports/CsvRolesMatrix.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/reports/CsvUserList.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/taglib/jsp/IsNotReadOnlyUserManagerTag.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/taglib/jsp/IsReadOnlyUserManagerTag.java
redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/util/UserComparator.java
redback-integrations/redback-jsecurity/src/main/java/org/codehaus/redback/jsecurity/RedbackRealm.java
redback-integrations/redback-jsecurity/src/test/java/org/codehaus/redback/jsecurity/RedbackRealmTest.java
redback-integrations/redback-rest/redback-rest-api/src/main/java/org/codehaus/redback/rest/api/model/User.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultLoginService.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultPasswordService.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultRoleManagementService.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultUserService.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/RedbackRequestInformation.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/interceptors/AuthenticationInterceptor.java
redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/utils/PasswordValidator.java
redback-integrations/redback-rest/redback-rest-services/src/test/java/org/codehaus/redback/rest/services/FakeCreateAdminServiceImpl.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractUserCredentialsAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AccountAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/AddAdminUserAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/BackupRestoreAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/EditRoleAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserCreateAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserDeleteAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserListAction.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/ForceAdminUserInterceptor.java
redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/PolicyEnforcementInterceptor.java
redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/LoginActionTest.java
redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AbstractUserCredentialsActionTest.java
redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.java
redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.java
redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.xml
redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.xml
redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/spring-context.xml
redback-keys/redback-authentication-keys/src/main/java/org/codehaus/plexus/redback/authentication/keystore/KeyStoreAuthenticator.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/AccountLockedException.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/DefaultUserSecurityPolicy.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/MustChangePasswordException.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/PasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/PasswordRuleViolations.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/UserSecurityPolicy.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/encoders/AbstractJAASPasswordEncoder.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/AlphaNumericPasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/AlphaPasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/CharacterLengthPasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/MustHavePasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/NumericalPasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/ReusePasswordRule.java
redback-policy/src/main/java/org/codehaus/plexus/redback/policy/rules/WhitespacePasswordRule.java
redback-rbac/redback-authorization-rbac/src/main/java/org/codehaus/plexus/redback/authorization/rbac/RbacAuthorizer.java
redback-rbac/redback-authorization-rbac/src/main/java/org/codehaus/plexus/redback/authorization/rbac/evaluator/DefaultPermissionEvaluator.java
redback-rbac/redback-rbac-providers/redback-rbac-memory/src/main/java/org/codehaus/plexus/redback/rbac/memory/MemoryAuthorizationDataSource.java
redback-system/src/main/java/org/codehaus/plexus/redback/system/DefaultSecuritySession.java
redback-system/src/main/java/org/codehaus/plexus/redback/system/DefaultSecuritySystem.java
redback-system/src/main/java/org/codehaus/plexus/redback/system/SecuritySession.java
redback-system/src/main/java/org/codehaus/plexus/redback/system/SecuritySystem.java
redback-users/redback-authentication-users/src/main/java/org/codehaus/plexus/redback/authentication/users/UserManagerAuthenticator.java
redback-users/redback-authentication-users/src/test/java/org/codehaus/plexus/redback/authentication/users/UserManagerAuthenticatorTest.java
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/AbstractUserManager.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/AbstractUserQuery.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/Messages.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/PermanentUserException.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/User.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManager.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManagerException.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManagerListener.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserNotFoundException.java [deleted file]
redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserQuery.java [deleted file]
redback-users/redback-users-providers/redback-users-cached/src/main/java/org/codehaus/plexus/redback/users/cached/CachedUserManager.java
redback-users/redback-users-providers/redback-users-cached/src/test/java/org/codehaus/plexus/redback/users/cached/CachedUserManagerTest.java
redback-users/redback-users-providers/redback-users-configurable/src/main/java/org/codehaus/plexus/redback/users/configurable/ConfigurableUserManager.java
redback-users/redback-users-providers/redback-users-jdo/src/main/java/org/codehaus/plexus/redback/users/jdo/JdoUserManager.java
redback-users/redback-users-providers/redback-users-jdo/src/main/java/org/codehaus/plexus/redback/users/jdo/JdoUserQuery.java
redback-users/redback-users-providers/redback-users-jdo/src/main/mdo/user.xml
redback-users/redback-users-providers/redback-users-jdo/src/test/java/org/codehaus/plexus/redback/users/jdo/JdoUserManagerTest.java
redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/codehaus/plexus/redback/users/ldap/LdapUserManager.java
redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/codehaus/plexus/redback/users/ldap/LdapUserQuery.java
redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/codehaus/plexus/redback/users/ldap/ctl/DefaultLdapController.java
redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/codehaus/plexus/redback/users/ldap/ctl/LdapController.java
redback-users/redback-users-providers/redback-users-ldap/src/test/java/org/codehaus/plexus/redback/users/ldap/LdapUserManagerTest.java
redback-users/redback-users-providers/redback-users-memory/src/main/java/org/codehaus/plexus/redback/users/memory/MemoryUserManager.java
redback-users/redback-users-providers/redback-users-memory/src/main/java/org/codehaus/plexus/redback/users/memory/SimpleUser.java
redback-users/redback-users-providers/redback-users-memory/src/main/java/org/codehaus/plexus/redback/users/memory/SimpleUserQuery.java
redback-users/redback-users-providers/redback-users-memory/src/main/java/org/codehaus/plexus/redback/users/memory/util/UserSorter.java
redback-users/redback-users-providers/redback-users-memory/src/test/java/org/codehaus/plexus/redback/users/MemoryUserManagerTest.java
redback-users/redback-users-tests/src/main/java/org/codehaus/plexus/redback/users/provider/test/AbstractUserManagerTestCase.java
redback-users/redback-users-tests/src/main/java/org/codehaus/plexus/redback/users/provider/test/UserManagerEventTracker.java

index bf725f42d4e83df52892be8405d67a70dc2aeb37..57a82c6ebcd3e89b4af8a3874f4d5fd5862a669c 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.authorization;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 /**
  * @author Jason van Zyl
index 32b2ee804d7dbe588b2f11948f577cd5284ce4a6..0d7d2d865288b000b6a23a874967030b15386b93 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.common.ldap;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 import javax.naming.directory.Attributes;
 import java.io.Serializable;
index b51fde0e5e7d8fd6797787bcbb729bc40bdc30ff..7326ff461e8e091b472a8ac78fa275de4664a06d 100644 (file)
@@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.common.ldap;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.configuration.UserConfiguration;
-import org.codehaus.plexus.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
 
index ebdbc385639c94112d40fa6872763765e85e237d..124b2f2e423796afa714d6d5ebe8ce9b1146231f 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.common.ldap;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 import javax.naming.directory.Attributes;
 
index c6a4e9a5f0a3d7e0dc48e45cca007cb0a41c5875..d371d630e175dceea7be67871d4d9cd50b72a05c 100644 (file)
@@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.management;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.keys.KeyManager;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
-import org.codehaus.plexus.redback.users.UserManager;
 
 import javax.xml.stream.XMLStreamException;
 import java.io.File;
index 6c166571bb96ab0e9895e2ac2cbf292e06138861..28682c8cfc5cb69bf4c745b19319936945786219 100644 (file)
@@ -34,6 +34,7 @@ import java.util.Map;
 
 import javax.xml.stream.XMLStreamException;
 
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
 import org.codehaus.plexus.redback.keys.KeyManager;
 import org.codehaus.plexus.redback.keys.KeyManagerException;
@@ -50,8 +51,7 @@ import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.rbac.jdo.RbacDatabase;
 import org.codehaus.plexus.redback.rbac.jdo.io.stax.RbacJdoModelStaxReader;
 import org.codehaus.plexus.redback.rbac.jdo.io.stax.RbacJdoModelStaxWriter;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.users.jdo.UserDatabase;
 import org.codehaus.plexus.redback.users.jdo.io.stax.UsersManagementStaxReader;
 import org.codehaus.plexus.redback.users.jdo.io.stax.UsersManagementStaxWriter;
index c1212eb546e3ddbb462687773f1c09451174d9e2..650618dea16599643d9e33b4f5b62c9904349ad8 100644 (file)
@@ -20,6 +20,7 @@ package org.codehaus.plexus.redback.management;
  */
 
 import junit.framework.TestCase;
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.commons.lang.SystemUtils;
 import org.codehaus.plexus.redback.common.jdo.UserConfigurableJdoFactory;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
@@ -31,8 +32,7 @@ import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.tests.utils.RBACDefaults;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.IOUtil;
 import org.custommonkey.xmlunit.XMLAssert;
index a398cbf8305ab4eceec9366b4d6d6a37eec306f5..a356e0ffcb00adde70643368896b4e7f25dbbd4c 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.redback.integration.checks.security;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDataSource;
 import org.codehaus.plexus.redback.configuration.UserConfiguration;
@@ -30,9 +31,8 @@ import org.codehaus.plexus.redback.role.RoleManagerException;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.check.EnvironmentCheck;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.util.IOUtil;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index e1c40b3e54b039b8393adef307d252dfed286f0c..5635f5f89c7f7e5296595fccfa2cfff3ae70e47a 100644 (file)
@@ -19,14 +19,14 @@ package org.codehaus.redback.integration.checks.security;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
 import org.codehaus.plexus.redback.role.RoleManager;
 import org.codehaus.plexus.redback.role.RoleManagerException;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.check.EnvironmentCheck;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
index 58b370ab7668be268a03c8af112dead86c1be637..4b47b05bbf23da07de63f5f38a581056061400ee 100644 (file)
@@ -19,13 +19,13 @@ package org.codehaus.redback.integration.checks.security;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.system.check.EnvironmentCheck;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.redback.integration.role.RoleConstants;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index 5361a273a00b8e51a30c012945493f83a21670d0..c46c27017c64207ce6ea7b278c155cc5fb876795 100644 (file)
@@ -19,6 +19,8 @@ package org.codehaus.redback.integration.filter.authentication;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
@@ -27,8 +29,6 @@ import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.plexus.util.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index f0b785195801751f58addbcc833188abd2371354..887aca7db4812d58ef3cb4349c9426500aac3c01 100644 (file)
@@ -19,15 +19,15 @@ package org.codehaus.redback.integration.filter.authentication.digest;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.codec.binary.Base64;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
 import org.codehaus.plexus.redback.authentication.TokenBasedAuthenticationDataSource;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.filter.authentication.HttpAuthenticationException;
 import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
index 3d98cf83fb2353644451c87710d90c6906e44694..19a8bd954bcf9899f7435011de4e1a60822ece4f 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.redback.integration.model;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 /**
  * AdminEditUserCredentials
index 03075a69e9e904b93ea2b2cce20d5e722b689a04..cb89eae38a37f900d111ca9c64c9847c927a58fb 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.redback.integration.model;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.redback.integration.util.DateUtils;
 
 /**
index 440d91520f140f48b63e7734946aea068bba3b1f..f1835e3dc3d326283ae7b46886b73bf72b3d5b4a 100644 (file)
@@ -19,8 +19,8 @@ package org.codehaus.redback.integration.model;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.util.StringUtils;
 
 import java.io.Serializable;
index 6a6bda53440a553a852c16171e6bdd43128de5fe..58dec03f41c6c8ed2688463de2ef14a95c31775d 100644 (file)
@@ -18,14 +18,14 @@ package org.codehaus.redback.integration.reports;
  * specific language governing permissions and limitations
  * under the License.
  */
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.redback.integration.util.RoleSorter;
 import org.codehaus.redback.integration.util.UserComparator;
 import org.springframework.stereotype.Service;
index 072a37dc5359629d2e92f0efbd84eb32d1a6c5e7..a71313869d6d9d2eb2b5496ab685d62e9cf8ff8c 100644 (file)
@@ -19,11 +19,11 @@ package org.codehaus.redback.integration.reports;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.commons.beanutils.PropertyUtils;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
 import org.codehaus.redback.integration.util.UserComparator;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index 4f6943bad9b80fafd6f91335a8c041be2d975a35..6fe1f01e1a1b37987a39975e56bf0fc189c6a739 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.redback.integration.taglib.jsp;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManager;
 import org.springframework.context.ApplicationContext;
 import org.springframework.web.context.support.WebApplicationContextUtils;
 
index bb03cb3a53a39810dab5fbf26730fe41fd4dd843..7e22dbbf06ff8d1fb3f91c60c2272f0c86312867 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.redback.integration.taglib.jsp;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManager;
 import org.springframework.context.ApplicationContext;
 import org.springframework.web.context.support.WebApplicationContextUtils;
 
index 1b74cbe9dc116c65863f8853e13ec9b45bbcc5dd..0faa02850761acf4c3cf9bd847cee59ba442c85e 100644 (file)
@@ -21,7 +21,7 @@ package org.codehaus.redback.integration.util;
 
 import java.util.Comparator;
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 /**
  * UserComparator
index be3545fc2de0f5d35112ab577660c7ffe166dd41..fd43d4aeeec606a0dbd61b486b5c3b6ca986fbb4 100644 (file)
@@ -23,15 +23,15 @@ import java.util.HashSet;
 import java.util.Iterator;
 import java.util.Set;
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
 import org.codehaus.plexus.redback.rbac.Permission;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 import org.jsecurity.authc.AuthenticationException;
 import org.jsecurity.authc.AuthenticationInfo;
 import org.jsecurity.authc.AuthenticationToken;
index 6aa2a060b3b81c8b468de333be49cdb4437ba686..dee0e67a621c1b1ec81029db9e794dc41bd70c2f 100644 (file)
@@ -20,6 +20,7 @@ package org.codehaus.redback.jsecurity;
  */
 
 import junit.framework.TestCase;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
 import org.codehaus.plexus.redback.rbac.Operation;
 import org.codehaus.plexus.redback.rbac.Permission;
@@ -27,8 +28,7 @@ import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManager;
 import org.jsecurity.authc.IncorrectCredentialsException;
 import org.jsecurity.authc.UsernamePasswordToken;
 import org.jsecurity.mgt.DefaultSecurityManager;
index f4b6e0576e83befcf47958e619646a66cc0c6df1..0b90a3e4bc0db27e752b747c7fdbe8594e2b9aa1 100644 (file)
@@ -82,7 +82,7 @@ public class User
         this.locked = locked;
     }
 
-    public User( org.codehaus.plexus.redback.users.User user )
+    public User( org.apache.archiva.redback.users.User user )
     {
         setUsername( user.getUsername() );
         this.setEmail( user.getEmail() );
index f4208e876aa84e26c08dfdf55b0297b6d5768f61..21a8b8ae2495a85dfc4f8eefa729af9dcc82c690 100644 (file)
@@ -18,6 +18,7 @@ package org.codehaus.redback.rest.services;
  * specific language governing permissions and limitations
  * under the License.
  */
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDataSource;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
@@ -29,7 +30,6 @@ import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
 import org.codehaus.redback.rest.api.model.User;
 import org.codehaus.redback.rest.api.services.LoginService;
@@ -130,7 +130,7 @@ public class DefaultLoginService
             SecuritySession securitySession = securitySystem.authenticate( authDataSource );
             if ( securitySession.getAuthenticationResult().isAuthenticated() )
             {
-                org.codehaus.plexus.redback.users.User user = securitySession.getUser();
+                org.apache.archiva.redback.users.User user = securitySession.getUser();
                 if ( !user.isValidated() )
                 {
                     log.info( "user {} not validated", user.getUsername() );
@@ -186,7 +186,7 @@ public class DefaultLoginService
         return Calendar.getInstance( TimeZone.getTimeZone( "GMT" ) );
     }
 
-    private User buildRestUser( org.codehaus.plexus.redback.users.User user )
+    private User buildRestUser( org.apache.archiva.redback.users.User user )
     {
         User restUser = new User();
         restUser.setEmail( user.getEmail() );
index 4f55d0ff1582057c9991718c0a04c3fd06df4aa6..00a9c4d36174c4e8d5299643a8913b27a649328c 100644 (file)
@@ -18,6 +18,7 @@ package org.codehaus.redback.rest.services;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
 import org.codehaus.plexus.redback.keys.KeyManagerException;
@@ -25,8 +26,7 @@ import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolationException;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
 import org.codehaus.redback.rest.api.model.ErrorMessage;
 import org.codehaus.redback.rest.api.services.PasswordService;
index 3f44d280135dec4ffa312ec86bdc869a9c8d91ef..ae2d32727f97447edb556ff3a920238acb9807c7 100644 (file)
@@ -18,6 +18,9 @@ package org.codehaus.redback.rest.services;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.redback.rbac.Permission;
 import org.codehaus.plexus.redback.rbac.RBACManager;
@@ -29,9 +32,6 @@ import org.codehaus.plexus.redback.role.RoleManagerException;
 import org.codehaus.plexus.redback.role.model.ModelApplication;
 import org.codehaus.plexus.redback.role.model.ModelRole;
 import org.codehaus.plexus.redback.role.model.ModelTemplate;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.model.AdminEditUserCredentials;
 import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
 import org.codehaus.redback.integration.util.RoleSorter;
index bd2d504fa324974134779c0e3ecd4b1c9d91ac1f..318bb4820c905dff4ecc881ef8a6ac264c9bda73 100644 (file)
@@ -20,6 +20,8 @@ package org.codehaus.redback.rest.services;
  */
 
 import net.sf.ehcache.CacheManager;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.cache.Cache;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
@@ -40,8 +42,6 @@ import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.role.RoleManager;
 import org.codehaus.plexus.redback.role.RoleManagerException;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
 import org.codehaus.redback.integration.mail.Mailer;
 import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
@@ -143,7 +143,7 @@ public class DefaultUserService
 
         try
         {
-            org.codehaus.plexus.redback.users.User u = userManager.findUser( user.getUsername() );
+            org.apache.archiva.redback.users.User u = userManager.findUser( user.getUsername() );
             if ( u != null )
             {
                 throw new RedbackServiceException(
@@ -172,7 +172,7 @@ public class DefaultUserService
             throw new RedbackServiceException( new ErrorMessage( "email cannot be empty" ) );
         }
 
-        org.codehaus.plexus.redback.users.User u =
+        org.apache.archiva.redback.users.User u =
             userManager.createUser( user.getUsername(), user.getFullName(), user.getEmail() );
         u.setPassword( user.getPassword() );
         u.setLocked( user.isLocked() );
@@ -246,7 +246,7 @@ public class DefaultUserService
     {
         try
         {
-            org.codehaus.plexus.redback.users.User user = userManager.findUser( username );
+            org.apache.archiva.redback.users.User user = userManager.findUser( username );
             return getSimpleUser( user );
         }
         catch ( UserNotFoundException e )
@@ -258,10 +258,10 @@ public class DefaultUserService
     public List<User> getUsers()
         throws RedbackServiceException
     {
-        List<org.codehaus.plexus.redback.users.User> users = userManager.getUsers();
+        List<org.apache.archiva.redback.users.User> users = userManager.getUsers();
         List<User> simpleUsers = new ArrayList<User>( users.size() );
 
-        for ( org.codehaus.plexus.redback.users.User user : users )
+        for ( org.apache.archiva.redback.users.User user : users )
         {
             simpleUsers.add( getSimpleUser( user ) );
         }
@@ -339,7 +339,7 @@ public class DefaultUserService
     {
         try
         {
-            org.codehaus.plexus.redback.users.User rawUser = userManager.findUser( user.getUsername() );
+            org.apache.archiva.redback.users.User rawUser = userManager.findUser( user.getUsername() );
             rawUser.setFullName( user.getFullName() );
             rawUser.setEmail( user.getEmail() );
             rawUser.setValidated( user.isValidated() );
@@ -391,7 +391,7 @@ public class DefaultUserService
     {
         try
         {
-            org.codehaus.plexus.redback.users.User user = userManager.getGuestUser();
+            org.apache.archiva.redback.users.User user = userManager.getGuestUser();
             return getSimpleUser( user );
         }
         catch ( Exception e )
@@ -412,7 +412,7 @@ public class DefaultUserService
         try
         {
             securitySystem.getPolicy().setEnabled( false );
-            org.codehaus.plexus.redback.users.User user = userManager.createGuestUser();
+            org.apache.archiva.redback.users.User user = userManager.createGuestUser();
             user.setPasswordChangeRequired( false );
             user = userManager.updateUser( user, false );
             roleManager.assignRole( "guest", user.getPrincipal().toString() );
@@ -445,7 +445,7 @@ public class DefaultUserService
         return Boolean.TRUE;
     }
 
-    private User getSimpleUser( org.codehaus.plexus.redback.users.User user )
+    private User getSimpleUser( org.apache.archiva.redback.users.User user )
     {
         if ( user == null )
         {
@@ -462,7 +462,7 @@ public class DefaultUserService
             return Boolean.FALSE;
         }
 
-        org.codehaus.plexus.redback.users.User user =
+        org.apache.archiva.redback.users.User user =
             userManager.createUser( RedbackRoleConstants.ADMINISTRATOR_ACCOUNT_NAME, adminUser.getFullName(),
                                     adminUser.getEmail() );
         user.setPassword( adminUser.getPassword() );
@@ -514,7 +514,7 @@ public class DefaultUserService
 
         try
         {
-            org.codehaus.plexus.redback.users.User user = userManager.findUser( username );
+            org.apache.archiva.redback.users.User user = userManager.findUser( username );
 
             AuthenticationKey authkey = keyManager.createKey( username, "Password Reset Request",
                                                               policy.getUserValidationSettings().getEmailValidationTimeout() );
@@ -567,7 +567,7 @@ public class DefaultUserService
                 new ErrorMessage( "user.already.exists", new String[]{ user.getUsername() } ) );
         }
 
-        org.codehaus.plexus.redback.users.User u =
+        org.apache.archiva.redback.users.User u =
             userManager.createUser( user.getUsername(), user.getFullName(), user.getEmail() );
         u.setPassword( user.getPassword() );
         u.setValidated( false );
@@ -633,7 +633,7 @@ public class DefaultUserService
         {
             AuthenticationKey authkey = securitySystem.getKeyManager().findKey( key );
 
-            org.codehaus.plexus.redback.users.User user =
+            org.apache.archiva.redback.users.User user =
                 securitySystem.getUserManager().findUser( authkey.getForPrincipal() );
 
             user.setValidated( true );
@@ -827,7 +827,7 @@ public class DefaultUserService
     {
         validateCredentialsLoose( user );
 
-        org.codehaus.plexus.redback.users.User tmpuser =
+        org.apache.archiva.redback.users.User tmpuser =
             userManager.createUser( user.getUsername(), user.getFullName(), user.getEmail() );
 
         user.setPassword( user.getPassword() );
index aec62532304d5ff8b4da0a7f1a4ceba9561e09dc..dfb9834be484f6030d086a1b3c40a31061489ca2 100644 (file)
@@ -20,6 +20,8 @@ package org.codehaus.redback.rest.services.interceptors;
  */
 
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.cxf.jaxrs.ext.RequestHandler;
 import org.apache.cxf.jaxrs.model.ClassResourceInfo;
 import org.apache.cxf.message.Message;
@@ -29,9 +31,7 @@ import org.codehaus.plexus.redback.authorization.RedbackAuthorization;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.system.SecuritySession;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.filter.authentication.HttpAuthenticationException;
 import org.codehaus.redback.integration.filter.authentication.basic.HttpBasicAuthentication;
 import org.codehaus.redback.rest.services.RedbackAuthenticationThreadLocal;
index 31fe0b7db04422975ac5aecef9543712be8c441c..0cfe1d6042ad37b4e56153046d7ed4dd9e5d2650 100644 (file)
@@ -18,12 +18,12 @@ package org.codehaus.redback.rest.services.utils;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolationException;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.redback.rest.api.model.ErrorMessage;
 import org.codehaus.redback.rest.api.services.RedbackServiceException;
 import org.slf4j.Logger;
index d1b451cc93b2110a2e6a65bb7db0f748009474b9..9442c71d9a56407a6d0e54d193dd8c863b82a5d2 100644 (file)
@@ -19,13 +19,10 @@ package org.codehaus.redback.rest.services;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.configuration.UserConfiguration;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.role.RoleManager;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
 import org.codehaus.redback.rest.api.services.UserService;
 
 import javax.inject.Inject;
index b9d437e879a70be08223f28a3906e15aaaa3c8d3..b9f73407fd7ebe591b2fcd85b321f4063e04d188 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.struts2.action;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolationException;
 import org.codehaus.plexus.redback.rbac.Permission;
 import org.codehaus.plexus.redback.rbac.RBACManager;
@@ -26,10 +27,8 @@ import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.model.UserCredentials;
-import org.codehaus.redback.integration.role.RoleConstants;
 import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
 import org.codehaus.redback.integration.util.RoleSorter;
 
index 377a5be5650432bdebb5bd1299c3f86a298d8425..4563b2df19d9cd546b31f91da4d24f3f7661c0fd 100644 (file)
@@ -19,14 +19,14 @@ package org.codehaus.plexus.redback.struts2.action;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolationException;
 import org.codehaus.plexus.redback.system.DefaultSecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index 38219424bf4d6cf3af0feec8ed66fb6f56527d98..46fc619bd5a0ad5353a90571e2ffbae2b817e2d4 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.struts2.action;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.apache.struts2.ServletActionContext;
 import org.codehaus.plexus.redback.authentication.AuthenticationConstants;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
@@ -34,8 +35,7 @@ import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index 34ff2d8e5c8cdc353d09c14f498efeb0374cc8c5..5bf212dd6e5bde7c0da5be2a94f08c0e19e08563 100644 (file)
@@ -19,13 +19,13 @@ package org.codehaus.plexus.redback.struts2.action;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolationException;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index a4f0f012efe2f0a16b2860e26002a46fb67a27d1..e450e3ac83cc3ac226d3df9d4b5dfb8a3f9d2c86 100644 (file)
@@ -19,14 +19,14 @@ package org.codehaus.plexus.redback.struts2.action;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
 import org.codehaus.plexus.redback.keys.KeyManager;
 import org.codehaus.plexus.redback.keys.KeyManagerException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index 44c09d3140ee900df27a8a3a17fce7db30831845..41499765864b0ef7abdea53d7e5a01d6c3daa84e 100644 (file)
@@ -19,14 +19,14 @@ package org.codehaus.plexus.redback.struts2.action;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
 import org.codehaus.plexus.redback.keys.KeyManagerException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
 import org.codehaus.plexus.redback.role.RoleManager;
 import org.codehaus.plexus.redback.role.RoleManagerException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
 import org.codehaus.redback.integration.mail.Mailer;
index 113254b34f4ec224c4d948d0ab5764b713954dce..0c4f08ffa22527326956639cf2ce0e00efac81b3 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.struts2.ServletActionContext;
 import org.codehaus.plexus.redback.authentication.AuthenticationConstants;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
@@ -32,9 +33,8 @@ import org.codehaus.plexus.redback.role.RoleManager;
 import org.codehaus.plexus.redback.role.RoleManagerException;
 import org.codehaus.plexus.redback.struts2.action.AuditEvent;
 import org.codehaus.plexus.redback.system.SecuritySession;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
 import org.codehaus.redback.integration.model.EditUserCredentials;
index e1019c5c478341d9c41716cf69524e9ae98de832..b0c0237e7131a3ed0085d987155b6bd88d1e162e 100644 (file)
@@ -19,6 +19,8 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
 import org.codehaus.plexus.redback.rbac.Resource;
@@ -30,9 +32,7 @@ import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
 import org.codehaus.plexus.redback.struts2.action.AuditEvent;
 import org.codehaus.plexus.redback.struts2.model.ApplicationRoleDetails;
 import org.codehaus.plexus.redback.struts2.model.ApplicationRoleDetails.RoleTableCell;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
@@ -45,7 +45,6 @@ import javax.inject.Inject;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
index 9a856917a9ed00116a941525f2773dcd3febe032..74b5331ba117105283e5248f51f2dce7e6456800 100644 (file)
@@ -26,7 +26,7 @@ import org.codehaus.plexus.redback.management.DataManagementTool;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.redback.integration.interceptor.SecureAction;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index 7479c6aba507fee0919c7d4c651b410420ffabfe..28204bc21d0843f657c924701a03858f87b46158 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.codehaus.plexus.redback.rbac.Permission;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
@@ -27,13 +28,11 @@ import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
 import org.codehaus.plexus.redback.struts2.action.AuditEvent;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
-import org.codehaus.redback.integration.role.RoleConstants;
 import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Controller;
index 16550a20f639cc6f63e336ec505ce05a92081bbd..c3431f42778bf8c26764dec47adf2106b4d744f8 100644 (file)
@@ -25,8 +25,8 @@ import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
 import org.codehaus.plexus.redback.struts2.action.AuditEvent;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
 import org.codehaus.redback.integration.model.CreateUserCredentials;
index 1e06d61837d25edaa2c27476bd177cd18cba4202..18cd5eca3cc272a5c4c7b4e3526d753b79ae6530 100644 (file)
@@ -19,6 +19,8 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
@@ -27,9 +29,7 @@ import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
 import org.codehaus.plexus.redback.struts2.action.AuditEvent;
 import org.codehaus.plexus.redback.struts2.action.CancellableAction;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index b7e3591d29448a2ce5a23aa1355d968dd138bdc0..063a4b502866c6aad945d21c5eaea36fd5d657d8 100644 (file)
@@ -19,6 +19,8 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolationException;
@@ -31,9 +33,7 @@ import org.codehaus.plexus.redback.struts2.action.CancellableAction;
 import org.codehaus.plexus.redback.system.DefaultSecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index 36d2e65b723e8beb5786d88d96b1585162e7f88d..566dfd06a753bdb6ffacc642074dea4cea701012 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.apache.struts2.ServletActionContext;
 import org.codehaus.plexus.redback.rbac.RBACManager;
@@ -29,9 +30,8 @@ import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
 import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
index f4ee41ffa0a0f7fe1e0b191f9d41270a94cac572..7ac6753962c6afb4d0aa4f300bb4e605866e96f2 100644 (file)
@@ -32,7 +32,7 @@ import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.util.AutoLoginCookies;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index 2672fa2ab2a42202564e35e68cb9ff33243306db..42d381600ef5dbc37989eb2e70c422dc3fbf0a00 100644 (file)
@@ -21,6 +21,8 @@ package org.codehaus.plexus.redback.struts2.interceptor;
 
 import com.opensymphony.xwork2.ActionInvocation;
 import com.opensymphony.xwork2.interceptor.Interceptor;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.apache.commons.lang.StringUtils;
 import org.apache.struts2.ServletActionContext;
 import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDataSource;
@@ -30,9 +32,7 @@ import org.codehaus.plexus.redback.role.RoleManagerException;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.redback.integration.checks.security.AdminAutoCreateCheck;
 import org.codehaus.redback.integration.util.AutoLoginCookies;
 import org.slf4j.Logger;
index 026763293d806b1b0612180dc30fffb6621c5218..8ca6adb4cc68e7270f93abe22a9f6245fa0b9ed8 100644 (file)
@@ -25,6 +25,7 @@ import java.util.Map;
 import javax.inject.Inject;
 import javax.servlet.http.HttpServletRequest;
 
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.struts2.ServletActionContext;
 import org.codehaus.plexus.redback.configuration.UserConfiguration;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
@@ -32,8 +33,7 @@ import org.codehaus.plexus.redback.system.DefaultSecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
index b5dccc01f1e5839d2c05153d81d929f709c5d61d..e455a65c52ed72eb6fd2dd168d700afbdc6ce466 100644 (file)
@@ -27,6 +27,7 @@ import static org.easymock.EasyMock.verify;
 
 import java.util.HashMap;
 
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
@@ -38,7 +39,6 @@ import org.codehaus.plexus.redback.policy.UserValidationSettings;
 import org.codehaus.plexus.redback.system.DefaultSecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 
 import com.opensymphony.xwork2.Action;
 import com.opensymphony.xwork2.XWorkTestCase;
index c30fc9b5694c1fbb97febb66b1e72bf9e1c04e01..b64a558d8e0faccdb4b43abda2a799f48ea27bdf 100644 (file)
@@ -20,6 +20,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  */
 
 import net.sf.ehcache.CacheManager;
+import org.apache.archiva.redback.users.UserManager;
 import org.apache.struts2.StrutsSpringTestCase;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDataSource;
@@ -34,14 +35,12 @@ import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystem;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.users.memory.SimpleUser;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.runner.RunWith;
-import org.junit.runners.BlockJUnit4ClassRunner;
 import org.junit.runners.JUnit4;
 
 import java.util.Collections;
index 0d02dde62a1a8d3524ee9b4482b410102b586bf0..531ff032ab00ce0b37e1ed9ceb8e69689dda107c 100644 (file)
@@ -22,6 +22,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
 import com.google.common.collect.Lists;
 import com.opensymphony.xwork2.Action;
 import com.opensymphony.xwork2.ActionProxy;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authorization.AuthorizationResult;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
@@ -31,7 +32,6 @@ import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
 import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.struts2.model.ApplicationRoleDetails;
 import org.codehaus.plexus.redback.struts2.model.ApplicationRoleDetails.RoleTableCell;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.redback.integration.interceptor.SecureActionBundle;
 import org.codehaus.redback.integration.interceptor.SecureActionException;
 import org.junit.Before;
index 50736e6cd1253b9452b2760fa179592852aff9ad..8a0d7399518507d11586bf0dfee65b9172ae1f65 100644 (file)
@@ -20,6 +20,8 @@ package org.codehaus.plexus.redback.struts2.action.admin;
  */
 
 import com.opensymphony.xwork2.Action;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
@@ -31,8 +33,6 @@ import org.codehaus.plexus.redback.rbac.Role;
 import org.codehaus.plexus.redback.system.DefaultSecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySession;
 import org.codehaus.plexus.redback.system.SecuritySystemConstants;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.users.memory.SimpleUser;
 import org.codehaus.redback.integration.model.AdminEditUserCredentials;
 import org.junit.After;
index 010af54433b4630d381bf9955e234466d82a0a31..8355d7178d182e41154c2d18a9282617b2a1ad59 100644 (file)
       </requirements>
     </component>
     <component>
-      <role>org.codehaus.plexus.redback.users.UserManager</role>
+      <role>org.apache.archiva.redback.users.UserManager</role>
       <role-hint>cached</role-hint>
       <implementation>org.codehaus.plexus.redback.users.cached.CachedUserManager</implementation>
       <description>CachedUserManager</description>
       <requirements>
         <requirement>
-          <role>org.codehaus.plexus.redback.users.UserManager</role>
+          <role>org.apache.archiva.redback.users.UserManager</role>
           <role-hint>memory</role-hint>
           <field-name>userImpl</field-name>
         </requirement>
index 010af54433b4630d381bf9955e234466d82a0a31..8355d7178d182e41154c2d18a9282617b2a1ad59 100644 (file)
       </requirements>
     </component>
     <component>
-      <role>org.codehaus.plexus.redback.users.UserManager</role>
+      <role>org.apache.archiva.redback.users.UserManager</role>
       <role-hint>cached</role-hint>
       <implementation>org.codehaus.plexus.redback.users.cached.CachedUserManager</implementation>
       <description>CachedUserManager</description>
       <requirements>
         <requirement>
-          <role>org.codehaus.plexus.redback.users.UserManager</role>
+          <role>org.apache.archiva.redback.users.UserManager</role>
           <role-hint>memory</role-hint>
           <field-name>userImpl</field-name>
         </requirement>
index c864c22d050a5316f38d2ad566ff2a887d2edc24..a5eb68e1086fee66ea8930be061668316e33c8a5 100755 (executable)
 
   <!--
     <component>
-      <role>org.codehaus.plexus.redback.users.UserManager</role>
+      <role>org.apache.archiva.redback.users.UserManager</role>
       <role-hint>cached</role-hint>
       <implementation>org.codehaus.plexus.redback.users.cached.CachedUserManager</implementation>
       <description>CachedUserManager</description>
       <requirements>
         <requirement>
-          <role>org.codehaus.plexus.redback.users.UserManager</role>
+          <role>org.apache.archiva.redback.users.UserManager</role>
           <role-hint>memory</role-hint>
           <field-name>userImpl</field-name>
         </requirement>
index 0abf27ec6f1b8e3d84769d24adfe78a17653d0cc..f15e79597bed390d6d120da130674bb56c54a840 100644 (file)
@@ -30,9 +30,9 @@ import org.codehaus.plexus.redback.keys.KeyManagerException;
 import org.codehaus.plexus.redback.keys.KeyNotFoundException;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
index d55a4948b14a560c3d4b0d739a03e2fe4db03a73..10091d2a79cad7daaf338dafdc7f6d93a225ad50 100644 (file)
@@ -16,7 +16,7 @@ package org.codehaus.plexus.redback.policy;
  * limitations under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 /**
  * AccountLockedException 
index 7b626af58cfe257efd1fe5a99aaab9294c11f6e0..370774276e75981b8183b5cd31e4d732c84a2f86 100644 (file)
@@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.policy;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.configuration.UserConfiguration;
 import org.codehaus.plexus.redback.policy.rules.MustHavePasswordRule;
-import org.codehaus.plexus.redback.users.User;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.ApplicationContext;
index 29e6886537d1ce4dff4bf2babeb9f35c7bebcd07..91ea8a64acd316cb7d95c6caee7e911952d52146 100644 (file)
@@ -1,6 +1,6 @@
 package org.codehaus.plexus.redback.policy;
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 /*
  * Copyright 2001-2006 The Apache Software Foundation.
index f7bf15108feedb8d7e327a35dc784655bbf1b5e7..1978757c7275ecddc85798ae9cb984fdadf9fea3 100644 (file)
@@ -16,7 +16,7 @@ package org.codehaus.plexus.redback.policy;
  * limitations under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 /**
  * A Password Rule
index 81870de0e2f8b85337bf6b72cf21fe0a6f31f245..8fb0ca665c6c3a5cc9b4f7421dcb659da7f9c5fe 100644 (file)
@@ -16,7 +16,7 @@ package org.codehaus.plexus.redback.policy;
  * limitations under the License.
  */
 
-import org.codehaus.plexus.redback.users.Messages;
+import org.apache.archiva.redback.users.Messages;
 
 import java.util.ArrayList;
 import java.util.List;
index b4aa04ec0e2996786a8c36e7e78fec7f9f7c2f47..0b9404debaeb76abba184d150085ddf6706e8a63 100644 (file)
@@ -16,8 +16,7 @@ package org.codehaus.plexus.redback.policy;
  * limitations under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.User;
 
 import java.util.List;
 
@@ -174,7 +173,7 @@ public interface UserSecurityPolicy
      * anonymous users needs to occur before calling this method.
      * <p/>
      * This method does not persist the newly changed user password.
-     * That will require a call to {@link UserManager#updateUser(User)}.
+     * That will require a call to {@link org.apache.archiva.redback.users.UserManager#updateUser(User)}.
      *
      * @param user the user password to validate, remember, and encode.
      * @throws PasswordRuleViolationException if the new password violates the password rules
index 194d3c5f2f84cefa27d1e10f26a7010723ceef83..36d521fe5feabad3654d36d27f9e5d8a904db801 100644 (file)
@@ -16,11 +16,11 @@ package org.codehaus.plexus.redback.policy.encoders;
  * limitations under the License.
  */
 
+import org.apache.archiva.redback.users.Messages;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PasswordEncodingException;
-import org.codehaus.plexus.redback.users.Messages;
 
 import java.io.UnsupportedEncodingException;
 import java.security.MessageDigest;
index 4725cbf266e85732cc72d16fb20840f48daa0a64..f1307ff3455dab6235f258fd82b86d023d796251 100644 (file)
@@ -16,9 +16,9 @@ package org.codehaus.plexus.redback.policy.rules;
  * limitations under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.PostConstruct;
index 86fd85795a4c0eb8c333a3b84ee4344bc860ef98..dfbb91911a1031fc58dcaf025654bc8983d9f33f 100644 (file)
@@ -18,7 +18,7 @@ package org.codehaus.plexus.redback.policy.rules;
 
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
 
index 567893a87ddef92d30aa8331996a2c105a79a297..d5354aa46c367915efc549aff041936a56bf4e57 100644 (file)
@@ -16,9 +16,9 @@ package org.codehaus.plexus.redback.policy.rules;
  * limitations under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
 
index d6003d2286831fa658cd3416f3900685eaf7d2c8..3aff74915bfe45bbb676882b4fd3bb74b143bef4 100644 (file)
@@ -18,7 +18,7 @@ package org.codehaus.plexus.redback.policy.rules;
 
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
 
index e50c8e6d4c5a067c38edb3c256f2d5151558c743..eb2a2fb5918984f44c3c43ce900c7b9cdd080102 100644 (file)
@@ -16,9 +16,9 @@ package org.codehaus.plexus.redback.policy.rules;
  * limitations under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
 
index 33b335be7bef8d4b1ff5ee5b42fae6e122dd2b61..9b218ae125e0e5a36bea78508d74a627d5f9eaca 100644 (file)
@@ -18,7 +18,7 @@ package org.codehaus.plexus.redback.policy.rules;
 
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
 
index c2fcdd1275e52f82b657e0f27d3a691219f93d2d..195d689fd4dc838c99e84bd955442374909ce55c 100644 (file)
@@ -18,7 +18,7 @@ package org.codehaus.plexus.redback.policy.rules;
 
 import org.codehaus.plexus.redback.policy.PasswordRuleViolations;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.PostConstruct;
index e3c739cc8f8334a871b7d42e01a44216f6b1f657..0315380389e592b6190293b532a326c6c408bc9a 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.authorization.rbac;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authorization.AuthorizationDataSource;
 import org.codehaus.plexus.redback.authorization.AuthorizationException;
 import org.codehaus.plexus.redback.authorization.AuthorizationResult;
@@ -30,9 +31,8 @@ import org.codehaus.plexus.redback.rbac.Permission;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
index 2a986b01dd8c9ee69815c8a1693c8a1e32f924dd..d6271bf41ff4228ae4549ac1cfe8f55ae5d39515 100644 (file)
@@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.authorization.rbac.evaluator;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.rbac.Permission;
 import org.codehaus.plexus.redback.rbac.Resource;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
index fdacaffcb8c21d3fd260335abae82fd47a20c160..9b149aaf6260f35fe2c4cf4edbcdc3417b880cf6 100644 (file)
@@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.system;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
-import org.codehaus.plexus.redback.users.User;
 import org.springframework.stereotype.Service;
 
 import java.io.Serializable;
index 3392189e7a778215155ca66098fd0f5abad3410e..e2c333582bc956eed5ba042c23d05e3db1eee08f 100644 (file)
@@ -19,6 +19,9 @@ package org.codehaus.plexus.redback.system;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.AuthenticationManager;
@@ -31,9 +34,6 @@ import org.codehaus.plexus.redback.keys.KeyManager;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
index 67d21220a4197a7dba2d567e76114f5c062965ae..9052bbf6beaa769cc9faba2521288fad2e60e1e2 100644 (file)
@@ -20,7 +20,7 @@ package org.codehaus.plexus.redback.system;
  */
 
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 import java.io.Serializable;
 
index 93742120137b426ccc5ee6d2cf2ef30e2e4fd001..e2f67c4274621a00a148f235bc55bcb33f9c38b5 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.system;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authorization.AuthorizationException;
@@ -27,8 +28,7 @@ import org.codehaus.plexus.redback.keys.KeyManager;
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
 
 /**
  * SecuritySystem:
index f6f024013e2b4a480447fb32ca89bb77a21797ec..991182db1cea1af9ca599e3d67848cd54aada9f6 100644 (file)
@@ -19,6 +19,8 @@ package org.codehaus.plexus.redback.authentication.users;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationConstants;
 import org.codehaus.plexus.redback.authentication.AuthenticationDataSource;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
@@ -30,14 +32,11 @@ import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.PolicyViolationException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.User;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
 
-import javax.annotation.Resource;
 import javax.inject.Inject;
 import javax.inject.Named;
 import java.util.HashMap;
index 85ea956866c9162f2f34cb355fc64a979c05886f..8256d33a5e253b03929efae86e47a9d79d22cbaf 100644 (file)
@@ -20,6 +20,9 @@ package org.codehaus.plexus.redback.authentication.users;
  */
 
 import junit.framework.TestCase;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.authentication.AuthenticationException;
 import org.codehaus.plexus.redback.authentication.AuthenticationResult;
 import org.codehaus.plexus.redback.authentication.Authenticator;
@@ -27,9 +30,6 @@ import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDat
 import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.policy.MustChangePasswordException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/AbstractUserManager.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/AbstractUserManager.java
deleted file mode 100644 (file)
index 489f4e1..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * AbstractUserManager
- *
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- */
-public abstract class AbstractUserManager
-    implements UserManager
-{
-    protected Logger log = LoggerFactory.getLogger( getClass() );
-    
-    private List<UserManagerListener> listeners = new ArrayList<UserManagerListener>();
-
-    public void addUserManagerListener( UserManagerListener listener )
-    {
-        if ( !listeners.contains( listener ) )
-        {
-            listeners.add( listener );
-        }
-    }
-
-    public void removeUserManagerListener( UserManagerListener listener )
-    {
-        listeners.remove( listener );
-    }
-
-    protected void fireUserManagerInit( boolean freshDatabase )
-    {
-        for ( UserManagerListener listener : listeners )
-        {
-            try
-            {
-                listener.userManagerInit( freshDatabase );
-            }
-            catch ( Exception e )
-            {
-                // Ignore
-            }
-        }
-    }
-
-    protected void fireUserManagerUserAdded( User addedUser )
-    {
-        for ( UserManagerListener listener : listeners )
-        {
-            try
-            {
-                listener.userManagerUserAdded( addedUser );
-            }
-            catch ( Exception e )
-            {
-                // Ignore
-            }
-        }
-    }
-
-    protected void fireUserManagerUserRemoved( User removedUser )
-    {
-        for ( UserManagerListener listener : listeners )
-        {
-            try
-            {
-                listener.userManagerUserRemoved( removedUser );
-            }
-            catch ( Exception e )
-            {
-                // Ignore
-            }
-        }
-    }
-
-    protected void fireUserManagerUserUpdated( User updatedUser )
-    {
-        for ( UserManagerListener listener : listeners )
-        {
-            try
-            {
-                listener.userManagerUserUpdated( updatedUser );
-            }
-            catch ( Exception e )
-            {
-                // Ignore
-            }
-        }
-    }
-
-    public User getGuestUser()
-        throws UserNotFoundException
-    {
-        return findUser( GUEST_USERNAME );
-    }
-
-    public User createGuestUser()
-    {
-        try
-        {
-            User u = getGuestUser();
-            if ( u != null )
-            {
-                return u;
-            }
-        }
-        catch ( UserNotFoundException e )
-        {
-            //Nothing to do
-        }
-
-        User user = createUser( GUEST_USERNAME, "Guest", "" );
-        user.setPermanent( true );
-        user.setPasswordChangeRequired( false );
-
-        user = addUser( user );
-        return user;
-    }
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/AbstractUserQuery.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/AbstractUserQuery.java
deleted file mode 100644 (file)
index 632bfce..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * Abstract Implementation of UserQuery.
- * Intended to be subclassed by UserManager providers.
- */
-public abstract class AbstractUserQuery
-    implements UserQuery
-{
-
-    private String username;
-
-    private String fullName;
-
-    private String email;
-
-    private long maxResults = -1;
-
-    private long firstResult;
-
-    private String orderBy = ORDER_BY_USERNAME;
-
-    private boolean ascending = true;
-
-    public String getUsername()
-    {
-        return username;
-    }
-
-    public void setUsername( String userName )
-    {
-        this.username = userName;
-    }
-
-    public String getFullName()
-    {
-        return fullName;
-    }
-
-    public void setFullName( String fullName )
-    {
-        this.fullName = fullName;
-    }
-
-    public String getEmail()
-    {
-        return email;
-    }
-
-    public void setEmail( String email )
-    {
-        this.email = email;
-    }
-
-    public long getFirstResult()
-    {
-        return firstResult;
-    }
-
-    public void setFirstResult( int firstResult )
-    {
-        this.firstResult = firstResult;
-    }
-
-    public long getMaxResults()
-    {
-        return maxResults;
-    }
-
-    public void setMaxResults( int maxResults )
-    {
-        this.maxResults = maxResults;
-    }
-
-    public String getOrderBy()
-    {
-        return orderBy;
-    }
-
-    public void setOrderBy( String orderBy )
-    {
-        if ( orderBy == null )
-        {
-            throw new IllegalArgumentException( "orderBy cannot be set to null" );
-        }
-        else if ( !ALLOWED_ORDER_FIELDS.contains( orderBy ) )
-        {
-            throw new IllegalArgumentException( orderBy + " is not an allowed orderBy field: " + orderBy );
-        }
-        this.orderBy = orderBy;
-    }
-
-    public boolean isAscending()
-    {
-        return ascending;
-    }
-
-    public void setAscending( boolean ascending )
-    {
-        this.ascending = ascending;
-    }
-
-}
\ No newline at end of file
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/Messages.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/Messages.java
deleted file mode 100644 (file)
index 5b21791..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-/**
- * Localized Message Handling.
- * 
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- */
-public class Messages
-{
-    private static final String BUNDLE_NAME = "org.codehaus.plexus.redback.users.messages"; //$NON-NLS-1$
-
-    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
-
-    /**
-     * Get a Message as-is from the Resource Bundle.
-     * 
-     * @param key the key for the message to get.
-     * @return the value of the key, or "!key!" if the key is not found.
-     */
-    public static String getString( String key )
-    {
-        try
-        {
-            return RESOURCE_BUNDLE.getString( key );
-        }
-        catch ( MissingResourceException e )
-        {
-            return '!' + key + '!';
-        }
-    }
-
-    /**
-     * Gets a Message from the Resource Bundle, with {1} and {2} style arguments.
-     * 
-     * @param key the key for the message to get.
-     * @param arg the argument to pass in.
-     * @return the value of the key, or "!key!" if the key is not found.
-     */
-    public static String getString( String key, Object arg )
-    {
-        return getString( key, new Object[] { arg } );
-    }
-
-    /**
-     * Gets a Message from the Resource Bundle, with {1} and {2} style arguments.
-     * 
-     * @param key the key for the message to get.
-     * @param args the arguments to pass in.
-     * @return the value of the key, or "!key!" if the key is not found.
-     */
-    public static String getString( String key, Object args[] )
-    {
-        try
-        {
-            String pattern = RESOURCE_BUNDLE.getString( key );
-            return MessageFormat.format( pattern, args );
-        }
-        catch ( MissingResourceException e )
-        {
-            return '!' + key + '!';
-        }
-    }
-
-    /**
-     * Prevent Instantiation.
-     */
-    private Messages()
-    {
-    }
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/PermanentUserException.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/PermanentUserException.java
deleted file mode 100644 (file)
index b9d8cd8..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * PermanentUserException - tossed when a forbidden action against a permanent user
- * occurs. 
- *
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- */
-public class PermanentUserException
-    extends UserManagerException
-{
-
-    public PermanentUserException()
-    {
-        super();
-    }
-
-    public PermanentUserException( String message, Throwable cause )
-    {
-        super( message, cause );
-    }
-
-    public PermanentUserException( String message )
-    {
-        super( message );
-    }
-
-    public PermanentUserException( Throwable cause )
-    {
-        super( cause );
-    }
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/User.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/User.java
deleted file mode 100644 (file)
index a0d8903..0000000
+++ /dev/null
@@ -1,301 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-
-/**
- * The User Object.
- *
- * @author Jason van Zyl
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- */
-public interface User
-    extends Serializable
-{
-
-    /**
-     * This is the object used to track the user within the provider.
-     *
-     * @return the principal for this user.
-     */
-    Object getPrincipal();
-
-    // --------------------------------------------------------------------
-    // Standard User Requirements.
-    // --------------------------------------------------------------------
-
-    /**
-     * Gets the User Name for this user.
-     * <p/>
-     * This field is required, and should never be empty.
-     *
-     * @return the user name.
-     */
-    String getUsername();
-
-    /**
-     * Sets the User Name for this user.
-     * <p/>
-     * This field is required, and should never be empty.
-     *
-     * @param name the user name.
-     */
-    void setUsername( String name );
-
-    /**
-     * Gets the Full Name for this user.
-     * <p/>
-     * This field is required, and should never be empty.
-     *
-     * @return the full name.
-     */
-    String getFullName();
-
-    /**
-     * Sets the Full Name for this user.
-     * <p/>
-     * This field is required, and should never be empty.
-     *
-     * @param name the full name.
-     */
-    void setFullName( String name );
-
-    /**
-     * Gets the email address for this user.
-     * <p/>
-     * This field is required, and should never be empty.
-     *
-     * @return the email address.
-     */
-    String getEmail();
-
-    /**
-     * Sets the email address for this user.
-     * <p/>
-     * This field is required, and should never be empty.
-     *
-     * @param address the email address.
-     */
-    void setEmail( String address );
-
-    // --------------------------------------------------------------------
-    // Password Requirements.
-    // --------------------------------------------------------------------
-
-    /**
-     * Gets the Raw (unencoded) Password.
-     * Used only on password change requests.
-     * <p/>
-     * <p>
-     * <b>Notes for User Providers</b>
-     * </p>
-     * <ol>
-     * <li>
-     * Providers need to look for a value in here to indicate if the user is
-     * intending to change their password.
-     * </li>
-     * <li>
-     * The providers of this interface need to use this field, encode the password, place it's value
-     * into the encodedPassword field, and clear out the raw unencoded password field.
-     * </li>
-     * <li>
-     * This field should never be stored on disk.
-     * </li>
-     * </ol>
-     *
-     * @return the raw encoded password.
-     */
-    String getPassword();
-
-    /**
-     * Sets the raw (unencoded) password for this user.
-     *
-     * @param rawPassword the raw unencoded password for this user.
-     * @see #getPassword()
-     */
-    void setPassword( String rawPassword );
-
-    /**
-     * Gets the Encoded Password.
-     *
-     * @return the encoded password.
-     */
-    String getEncodedPassword();
-
-    /**
-     * Sets the Encoded Password.
-     * <p/>
-     * This field is populated by the {@link UserManager} process.
-     *
-     * @param encodedPassword
-     */
-    void setEncodedPassword( String encodedPassword );
-
-    /**
-     * Gets the Date of the Last Password Change.
-     * <p/>
-     * Used by password management policies to enforce password expiration rules.
-     *
-     * @return the date of the last password change.
-     */
-    Date getLastPasswordChange();
-
-    /**
-     * Sets the Last Password Change Date.
-     * <p/>
-     * This field is populated by the {@link UserManager} process.
-     *
-     * @param passwordChangeDate the date that the last password change occured.
-     */
-    void setLastPasswordChange( Date passwordChangeDate );
-
-    /**
-     * Gets the list of previous password (in encoded format).
-     * <p/>
-     * Used by password management policies to enforce password reuse rules.
-     *
-     * @return the list of {@link String} objects.  Represents previous passwords (in encoded format).
-     */
-    List<String> getPreviousEncodedPasswords();
-
-    /**
-     * Sets the list of previous passwords (in encoded format)
-     *
-     * @param encodedPasswordList (list of {@link String} objects.) the previously passwords in encoded format.
-     */
-    void setPreviousEncodedPasswords( List<String> encodedPasswordList );
-
-    /**
-     * Add encoded password to previously passwords in encoded format.
-     *
-     * @param encodedPassword the encoded password to add.
-     */
-    void addPreviousEncodedPassword( String encodedPassword );
-
-    // --------------------------------------------------------------------
-    // State
-    // --------------------------------------------------------------------
-
-    /**
-     * Gets the flag indicating if this user is a permanent user or not.
-     * <p/>
-     * Usually Root / Admin / Guest users are flagged as such.
-     */
-    boolean isPermanent();
-
-    /**
-     * Sets the permanent flag for this user.
-     * <p/>
-     * Users such as Root / Admin / Guest are typically flagged as permanent.
-     *
-     * @param permanent true if permanent.
-     */
-    void setPermanent( boolean permanent );
-
-    /**
-     * Determines if this user account is locked from use or not.
-     * <p/>
-     * This state is set from an administrative point of view, or due to
-     * excessive failed login attempts.
-     *
-     * @return true if account is locked.
-     */
-    boolean isLocked();
-
-    /**
-     * Sets the locked state of this account.
-     *
-     * @param locked true if account is to be locked.
-     */
-    void setLocked( boolean locked );
-
-    /**
-     * Determines if this user account must change their password on next login.
-     *
-     * @return true if user must change password on next login.
-     */
-    boolean isPasswordChangeRequired();
-
-    /**
-     * Sets the flag to indicate if this user must change their password on next login.
-     *
-     * @param changeRequired true if user must change password on next login.
-     */
-    void setPasswordChangeRequired( boolean changeRequired );
-
-    /**
-     * Gets the flag indicating if this user has been validated (or not)
-     *
-     * @return true if validated.
-     */
-    boolean isValidated();
-
-    /**
-     * Sets the flag indicating if this user has been validated (or not)
-     *
-     * @param valid true if validated.
-     */
-    void setValidated( boolean valid );
-
-    // --------------------------------------------------------------------
-    // Statistics
-    // --------------------------------------------------------------------
-
-    /**
-     * Get Count of Failed Login Attempts.
-     *
-     * @return the count of failed login attempts.
-     */
-    int getCountFailedLoginAttempts();
-
-    /**
-     * Set the count of failed login attempts.
-     *
-     * @param count the count of failed login attempts.
-     */
-    void setCountFailedLoginAttempts( int count );
-
-    /**
-     * Get the Creation Date for this account.
-     *
-     * @return the date of creation for this account.
-     */
-    Date getAccountCreationDate();
-
-    /**
-     * Set the Creation Date for this account.
-     */
-    void setAccountCreationDate( Date date );
-
-    /**
-     * Get the Last Successful Login Date for this account.
-     *
-     * @return the date of the last successful login
-     */
-    Date getLastLoginDate();
-
-    /**
-     * Sets the Last Successful Login Date for this account.
-     */
-    void setLastLoginDate( Date date );
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManager.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManager.java
deleted file mode 100644 (file)
index fdb8e8c..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.util.List;
-
-/**
- * User Manager Interface
- *
- * @author Jason van Zyl
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- */
-public interface UserManager
-{
-    
-    static final String GUEST_USERNAME = "guest";
-
-    /**
-     * Is the UserManager read only?  if so then create and modify actions are to be disabled
-     *
-     * @return boolean true if user manager is disabled
-     */
-    boolean isReadOnly();
-
-    /**
-     * An Identifier for the UserManager.
-     *
-     * @return the user manager identifier.
-     */
-    String getId();
-
-    /**
-     * Add a {@link UserManagerListener} to track major events in the
-     * UserManager.
-     *
-     * @param listener the listener to add.
-     */
-    void addUserManagerListener( UserManagerListener listener );
-
-    /**
-     * Remove a {@link UserManagerListener} from the collection of listeners.
-     *
-     * @param listener the listener to remove.
-     */
-    void removeUserManagerListener( UserManagerListener listener );
-
-    /**
-     * Factory method to create new User Objects based on provider specific
-     * implementation.
-     * <p/>
-     * User objects created this way do not exist in the provider's underlying
-     * data store until a call to {@link #addUser(User)} is made.
-     *
-     * @param username     the username for this user.
-     * @param fullName     the full name for this user.
-     * @param emailAddress the email address for this user.
-     * @return the new user object ready to use.
-     */
-    User createUser( String username, String fullName, String emailAddress );
-
-    /**
-     * Factory method to create the guest user.
-     *
-     * @return The guest user
-     */
-    User createGuestUser();
-
-    /**
-     * Factory method to create {@link UserQuery}s based on provider specific
-     * implementations.
-     *
-     * @return the provider implementation of UserQuery
-     */
-    UserQuery createUserQuery();
-
-    /**
-     * Get the List of {@link User} objects.
-     *
-     * @return the List of {@link User} Objects.
-     */
-    List<User> getUsers();
-
-    List<User> getUsers( boolean orderAscending );
-
-    /**
-     * Add a User.
-     *
-     * @param user the user to add.
-     * @return the user that was just added.
-     */
-    User addUser( User user );
-
-    /**
-     * Update a User.
-     *
-     * @param user the user to update.
-     * @return the user that was just updated.
-     * @throws UserNotFoundException if the user was not found to update.
-     */
-    User updateUser( User user )
-        throws UserNotFoundException;
-
-    /**
-     * Find a User using a User name.
-     *
-     * @param username the username to find.
-     * @return the user.
-     * @throws UserNotFoundException if the user was not found.
-     */
-    User findUser( String username )
-        throws UserNotFoundException;
-
-    /**
-     * Get the guest user.
-     *
-     * @return the guest user.
-     */
-    User getGuestUser()
-        throws UserNotFoundException;
-
-    List<User> findUsersByUsernameKey( String usernameKey, boolean orderAscending );
-
-    List<User> findUsersByFullNameKey( String fullNameKey, boolean orderAscending );
-
-    List<User> findUsersByEmailKey( String emailKey, boolean orderAscending );
-
-    /**
-     * Find users matching properties, ordering and range as specified by the
-     * {@link UserQuery}.
-     *
-     * @param query the query.
-     * @return a List of {@link User} objects.
-     */
-    List<User> findUsersByQuery( UserQuery query );
-
-    /**
-     * Find a User using the principal.
-     *
-     * @param principal the principal to look for.
-     * @return the user.
-     * @throws UserNotFoundException if the user was not found.
-     */
-    User findUser( Object principal )
-        throws UserNotFoundException;
-
-    /**
-     * true if the user exists, false if it doesn't
-     *
-     * @param principal
-     * @return true, if user exists
-     */
-    boolean userExists( Object principal );
-
-    /**
-     * Delete a user using the principal.
-     *
-     * @param principal the principal to look for.
-     * @throws UserNotFoundException the user was not found.
-     */
-    void deleteUser( Object principal )
-        throws UserNotFoundException;
-
-    /**
-     * Delete a user using the username.
-     *
-     * @param username the username to look for.
-     * @throws UserNotFoundException the user was not found.
-     */
-    void deleteUser( String username )
-        throws UserNotFoundException;
-
-    /**
-     * Add a user to the database without checking for consistency or adjusting the password. Should only be used for
-     * re-importing known-good data.
-     *
-     * @param user the user to add
-     */
-    void addUserUnchecked( User user );
-
-    void eraseDatabase();
-
-    User updateUser( User user, boolean passwordChangeRequired )
-        throws UserNotFoundException;
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManagerException.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManagerException.java
deleted file mode 100644 (file)
index ca8ce98..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * UserManagerException 
- *
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- */
-public class UserManagerException
-    extends RuntimeException
-{
-
-    public UserManagerException()
-    {
-        super();
-    }
-
-    public UserManagerException( String message, Throwable cause )
-    {
-        super( message, cause );
-    }
-
-    public UserManagerException( String message )
-    {
-        super( message );
-    }
-
-    public UserManagerException( Throwable cause )
-    {
-        super( cause );
-    }
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManagerListener.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserManagerListener.java
deleted file mode 100644 (file)
index 502e521..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * UserManagerListener
- *
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- */
-public interface UserManagerListener
-{
-    void userManagerInit( boolean freshDatabase );
-
-    void userManagerUserAdded( User user );
-
-    void userManagerUserRemoved( User user );
-
-    void userManagerUserUpdated( User user );
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserNotFoundException.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserNotFoundException.java
deleted file mode 100644 (file)
index b51c7ee..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * @author Jason van Zyl
- */
-public class UserNotFoundException
-    extends Exception
-{
-    public UserNotFoundException( String string )
-    {
-        super( string );
-    }
-
-    public UserNotFoundException( String string, Throwable throwable )
-    {
-        super( string, throwable );
-    }
-
-    public UserNotFoundException( Throwable throwable )
-    {
-        super( throwable );
-    }
-}
diff --git a/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserQuery.java b/redback-users/redback-users-api/src/main/java/org/codehaus/plexus/redback/users/UserQuery.java
deleted file mode 100644 (file)
index deb95cb..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-package org.codehaus.plexus.redback.users;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-
-public interface UserQuery
-{
-    final static String ORDER_BY_USERNAME = "username";
-
-    final static String ORDER_BY_FULLNAME = "fullname";
-
-    final static String ORDER_BY_EMAIL = "email";
-
-    final static Set<String> ALLOWED_ORDER_FIELDS =
-        new HashSet<String>( Arrays.asList( ORDER_BY_USERNAME, ORDER_BY_FULLNAME, ORDER_BY_EMAIL ) );
-
-    /**
-     * Returns the case insensitive substring user name criteria.
-     *
-     * @return the username criteria.
-     */
-    String getUsername();
-
-    /**
-     * Sets the case insensitive substring user name criteria.
-     *
-     * @param userName the username criteria
-     */
-    void setUsername( String userName );
-
-    /**
-     * Returns the case insensitive substring full name criteria.
-     *
-     * @return the username criteria.
-     */
-    String getFullName();
-
-    /**
-     * Sets the case insensitive substring full name criteria.
-     *
-     * @param fullName the full name criteria
-     */
-    void setFullName( String fullName );
-
-    /**
-     * Returns the case insensitive substring email criteria.
-     *
-     * @return the email criteria.
-     */
-    String getEmail();
-
-    /**
-     * Sets the case insensitive substring email criteria.
-     *
-     * @param email the email criteria
-     */
-    void setEmail( String email );
-
-    /**
-     * Returns the index (zero based) of the first result to include. Useful for paging.
-     *
-     * @return the first index
-     */
-    long getFirstResult();
-
-    /**
-     * Sets the index (zero based) of the first result to include. Useful for paging.
-     *
-     * @param firstResult the first index
-     */
-    void setFirstResult( int firstResult );
-
-    /**
-     * Returns the maximum number of users to return.
-     *
-     * @return the maximum number of users to return.
-     */
-    long getMaxResults();
-
-    /**
-     * Sets the maximum number of users to return.
-     *
-     * @param maxResults the maximum number of users to return.
-     */
-    void setMaxResults( int maxResults );
-
-    /**
-     * Returns the property used to order the results of this query.
-     * This is one of {@link #ORDER_BY_USERNAME}, {@link #ORDER_BY_FULLNAME} or {@link #ORDER_BY_EMAIL}.
-     *
-     * @return the order property.
-     */
-    String getOrderBy();
-
-    /**
-     * Sets the property used to order the results of this query.
-     * This is one of {@link #ORDER_BY_USERNAME}, {@link #ORDER_BY_FULLNAME} or {@link #ORDER_BY_EMAIL}.
-     *
-     * @param orderBy the order property.
-     */
-    void setOrderBy( String orderBy );
-
-    /**
-     * Returns true if the results should be returned in ascending order.
-     *
-     * @return ascending
-     */
-    boolean isAscending();
-
-    /**
-     * Set this to true if the results should be returned in ascending order.
-     *
-     * @param ascending true if the results should be returned in ascending
-     */
-    void setAscending( boolean ascending );
-}
index 50f1f2fff5cfdbc31ff3da14115a5b1a3e719c26..31775a0a9aed7b472ad14609ea2e4c2f2e0befd3 100644 (file)
@@ -19,12 +19,12 @@ package org.codehaus.plexus.redback.users.cached;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManagerListener;
+import org.apache.archiva.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.cache.Cache;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserManagerListener;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.UserManager;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
index d86defe87b9097c5b2f876d30693969023b08914..73775079bebe31648dc748fe7062109628633dca 100644 (file)
@@ -21,7 +21,7 @@ package org.codehaus.plexus.redback.users.cached;
 
 import net.sf.ehcache.CacheManager;
 
-import org.codehaus.plexus.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.users.provider.test.AbstractUserManagerTestCase;
 import org.junit.After;
 import org.junit.AfterClass;
index f0d7e33313f1adb087641701ba1e9396f2371ef0..7ecaa88808aef57ddb10bb523a21d64a0377e84d 100644 (file)
@@ -16,12 +16,12 @@ package org.codehaus.plexus.redback.users.configurable;
  * limitations under the License.
  */
 
+import org.apache.archiva.redback.users.AbstractUserManager;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.configuration.UserConfiguration;
-import org.codehaus.plexus.redback.users.AbstractUserManager;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.UserQuery;
 import org.springframework.context.ApplicationContext;
 import org.springframework.stereotype.Service;
 
index 7a3f052999814bde048d4260368033b30c4d0b54..14ee716f7a17f3d6004990b2f8f6c8c5ccca61df 100644 (file)
@@ -19,23 +19,22 @@ package org.codehaus.plexus.redback.users.jdo;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.AbstractUserManager;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManagerException;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.jdo.JdoFactory;
 import org.codehaus.plexus.jdo.PlexusJdoUtils;
 import org.codehaus.plexus.jdo.PlexusObjectNotFoundException;
 import org.codehaus.plexus.jdo.PlexusStoreException;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.AbstractUserManager;
-import org.codehaus.plexus.redback.users.PermanentUserException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManagerException;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.PermanentUserException;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.util.StringUtils;
 import org.jpox.JDOClassLoaderResolver;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.PostConstruct;
-import javax.annotation.Resource;
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.jdo.Extent;
index 42fbb0a490980d4328b305b62dab582850db23e0..1b291146fa978ae6a3f542a7ed8cf913330b2034 100644 (file)
@@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.users.jdo;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.AbstractUserQuery;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.AbstractUserQuery;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.util.StringUtils;
 
 import java.util.ArrayList;
index e4caddd533571dfc1d73e859735f64d059fe5ec6..d1a97bff27454992b8babf0491353520e00b2028 100644 (file)
@@ -49,7 +49,7 @@
       <name>JdoUser</name>
       <version>1.0.0+</version>
       <interfaces>
-        <interface>org.codehaus.plexus.redback.users.User</interface>
+        <interface>org.apache.archiva.redback.users.User</interface>
       </interfaces>
       <description></description>
       <fields>
index b66c3f54b819e6e67ae1944726fd8bf9ab8a30f9..7bee0c8a0f758d4ffca11e1c1c52436c8aa8049d 100644 (file)
@@ -21,8 +21,6 @@ package org.codehaus.plexus.redback.users.jdo;
 
 import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
 import org.codehaus.plexus.redback.common.jdo.test.StoreManagerDebug;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.users.provider.test.AbstractUserManagerTestCase;
 import org.jpox.AbstractPersistenceManagerFactory;
 import org.jpox.SchemaTool;
@@ -33,8 +31,6 @@ import javax.inject.Named;
 import javax.jdo.PersistenceManager;
 import javax.jdo.PersistenceManagerFactory;
 import java.net.URL;
-import java.util.Arrays;
-import java.util.List;
 import java.util.Map;
 import java.util.Properties;
 
index 0dfd4e74626f0a9e7b67cbca624349603bf666d5..7a2152e0f3ded2110300e4e66573253e5daadea9 100644 (file)
@@ -20,16 +20,16 @@ package org.codehaus.plexus.redback.users.ldap;
  */
 
 
+import org.apache.archiva.redback.users.AbstractUserManager;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.common.ldap.LdapUser;
 import org.codehaus.plexus.redback.common.ldap.MappingException;
 import org.codehaus.plexus.redback.common.ldap.UserMapper;
 import org.codehaus.plexus.redback.common.ldap.connection.LdapConnection;
 import org.codehaus.plexus.redback.common.ldap.connection.LdapConnectionFactory;
 import org.codehaus.plexus.redback.common.ldap.connection.LdapException;
-import org.codehaus.plexus.redback.users.AbstractUserManager;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.redback.users.ldap.ctl.LdapController;
 import org.codehaus.plexus.redback.users.ldap.ctl.LdapControllerException;
 import org.codehaus.plexus.redback.users.ldap.service.LdapCacheService;
@@ -343,7 +343,7 @@ public class LdapUserManager
     }
 
     /**
-     * @see org.codehaus.plexus.redback.users.UserManager#findUsersByUsernameKey(java.lang.String, boolean)
+     * @see org.apache.archiva.redback.users.UserManager#findUsersByUsernameKey(java.lang.String, boolean)
      */
     public List<User> findUsersByUsernameKey( String usernameKey, boolean orderAscending )
     {
@@ -360,7 +360,7 @@ public class LdapUserManager
     }
 
     /**
-     * @see org.codehaus.plexus.redback.users.UserManager#getUsers()
+     * @see org.apache.archiva.redback.users.UserManager#getUsers()
      */
     public List<User> getUsers()
     {
index d562cff9c1a81c39816879335e9e919a3e7e8676..67c34d143baff41d5f04ceddfd49b5e1a763451e 100644 (file)
@@ -20,7 +20,7 @@ package org.codehaus.plexus.redback.users.ldap;
  */
 
 import org.codehaus.plexus.redback.common.ldap.UserMapper;
-import org.codehaus.plexus.redback.users.AbstractUserQuery;
+import org.apache.archiva.redback.users.AbstractUserQuery;
 
 public class LdapUserQuery
     extends AbstractUserQuery
index e75f88d52cf482c65e8f2da9eee87343b9c41def..bd2af80f0acae2f1b3e604fa1a9e228147c7a00d 100644 (file)
@@ -25,7 +25,6 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.Set;
 
-import javax.annotation.Resource;
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.naming.NamingEnumeration;
@@ -34,12 +33,12 @@ import javax.naming.directory.DirContext;
 import javax.naming.directory.SearchControls;
 import javax.naming.directory.SearchResult;
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.common.ldap.LdapUser;
 import org.codehaus.plexus.redback.common.ldap.LdapUserMapper;
 import org.codehaus.plexus.redback.common.ldap.MappingException;
 import org.codehaus.plexus.redback.common.ldap.UserMapper;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
 import org.codehaus.plexus.redback.users.ldap.LdapUserQuery;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -70,7 +69,7 @@ public class DefaultLdapController
     }
 
     /**
-        * @see org.codehaus.plexus.redback.users.ldap.ctl.LdapControllerI#updateUser(org.codehaus.plexus.redback.users.User, javax.naming.directory.DirContext)
+        * @see org.codehaus.plexus.redback.users.ldap.ctl.LdapControllerI#updateUser(org.apache.archiva.redback.users.User, javax.naming.directory.DirContext)
         */
     public void updateUser( User user, DirContext context )
         throws LdapControllerException, MappingException
@@ -233,7 +232,7 @@ public class DefaultLdapController
    }
 
     /**
-        * @see org.codehaus.plexus.redback.users.ldap.ctl.LdapControllerI#createUser(org.codehaus.plexus.redback.users.User, javax.naming.directory.DirContext, boolean)
+        * @see org.codehaus.plexus.redback.users.ldap.ctl.LdapControllerI#createUser(org.apache.archiva.redback.users.User, javax.naming.directory.DirContext, boolean)
         */
     public void createUser( User user, DirContext context, boolean encodePasswordIfChanged )
         throws LdapControllerException, MappingException
index 54bb38b71ac3adf0dfee9e414329808fe0780e6a..197417077a8ed245a4027c444ae2b95eb8d7a0c8 100644 (file)
@@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.users.ldap.ctl;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.common.ldap.LdapUser;
 import org.codehaus.plexus.redback.common.ldap.MappingException;
-import org.codehaus.plexus.redback.users.User;
 import org.codehaus.plexus.redback.users.ldap.LdapUserQuery;
 
 import javax.naming.directory.DirContext;
index bf127fb67911f65b023141bb37ac0e995eb005c2..2e2b50ab8e8887558736fc018ba6de639b82d798 100644 (file)
@@ -20,13 +20,13 @@ package org.codehaus.plexus.redback.users.ldap;
  */
 
 import junit.framework.TestCase;
+import org.apache.archiva.redback.users.User;
 import org.codehaus.plexus.redback.common.ldap.connection.LdapConnection;
 import org.codehaus.plexus.redback.common.ldap.connection.LdapConnectionFactory;
 import org.codehaus.plexus.redback.policy.PasswordEncoder;
 import org.codehaus.plexus.redback.policy.encoders.SHA1PasswordEncoder;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.users.ldap.service.LdapCacheService;
 import org.codehaus.redback.components.apacheds.ApacheDs;
 import org.junit.After;
index 90dcc34604c5b2836b0f90c8e686f10afac5ddbb..836256754918dd52a05f9c2812bd5982eaa598a3 100644 (file)
@@ -19,13 +19,13 @@ package org.codehaus.plexus.redback.users.memory;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.AbstractUserManager;
-import org.codehaus.plexus.redback.users.PermanentUserException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserQuery;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.AbstractUserManager;
+import org.apache.archiva.redback.users.PermanentUserException;
+import org.apache.archiva.redback.users.UserQuery;
+import org.apache.archiva.redback.users.UserNotFoundException;
 import org.codehaus.plexus.redback.users.memory.util.UserSorter;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.stereotype.Service;
index 543949d3c6bf007588a8b548dd634f3f002633da..ac4aa4ba950bb7d2dfbbe6a8cf195cf82d16600c 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.users.memory;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 import java.io.Serializable;
 import java.util.ArrayList;
index 7e1ce1a67110aeb4cba6c3952d125b7ad8f068a5..5eb50c788ae42a3adf26ae15b86ac35fa329133e 100644 (file)
@@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.users.memory;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.AbstractUserQuery;
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.AbstractUserQuery;
+import org.apache.archiva.redback.users.User;
 
 import java.util.Comparator;
 
index 43327302688d7150c15b954bf6a370fba375ea82..40dd3404440298f73d078a1a9d98918612e83eb3 100644 (file)
@@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.users.memory.util;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
+import org.apache.archiva.redback.users.User;
 
 import java.util.Comparator;
 
index ba669f4a884fca2e4a7ced6c2dab2431819a3b85..792b34914317341e671fd3f153c56df349686dab 100644 (file)
@@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.users;
  * under the License.
  */
 
+import org.apache.archiva.redback.users.UserManager;
 import org.codehaus.plexus.redback.users.memory.MemoryUserManager;
 import org.codehaus.plexus.redback.users.provider.test.AbstractUserManagerTestCase;
 import org.junit.Before;
index f80ff6c094b13e510c6df73b52c4d7c5e95fe01e..e976e1bc080c6d606c0c65e35b676600192ea78c 100644 (file)
@@ -20,12 +20,12 @@ package org.codehaus.plexus.redback.users.provider.test;
  */
 
 import junit.framework.TestCase;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
-import org.codehaus.plexus.redback.users.PermanentUserException;
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManager;
-import org.codehaus.plexus.redback.users.UserNotFoundException;
-import org.codehaus.plexus.redback.users.UserQuery;
+import org.apache.archiva.redback.users.PermanentUserException;
+import org.apache.archiva.redback.users.UserManager;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.springframework.test.context.ContextConfiguration;
index fc05adfff4127aa2be01cd943f26f621e80215be..2a8f1b2e9f101b3e32b7befb8b1c5cd1398c9237 100644 (file)
@@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.users.provider.test;
  * under the License.
  */
 
-import org.codehaus.plexus.redback.users.User;
-import org.codehaus.plexus.redback.users.UserManagerListener;
+import org.apache.archiva.redback.users.UserManagerListener;
+import org.apache.archiva.redback.users.User;
 
 import java.util.ArrayList;
 import java.util.List;