diff options
author | Olivier Lamy <olamy@apache.org> | 2012-04-07 22:28:59 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-04-07 22:28:59 +0000 |
commit | 12919d41712a5500c8cb1cae6db5980e5f39d139 (patch) | |
tree | 61365477e886ae73b3e3c56cfee577497d19fdf3 /redback-integrations/redback-struts2/redback-struts2-integration | |
parent | 2348016ffa859bc54dc53c22ff3f433c40d4df3f (diff) | |
download | archiva-12919d41712a5500c8cb1cae6db5980e5f39d139.tar.gz archiva-12919d41712a5500c8cb1cae6db5980e5f39d139.zip |
package move to o.a.a.r module redback-policy
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redback-integrations/redback-struts2/redback-struts2-integration')
16 files changed, 31 insertions, 32 deletions
diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractSecurityAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractSecurityAction.java index 723daca82..e19361e9f 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractSecurityAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractSecurityAction.java @@ -23,8 +23,8 @@ package org.codehaus.plexus.redback.struts2.action; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.ServletActionContext; -import org.codehaus.plexus.redback.policy.PasswordRuleViolationException; -import org.codehaus.plexus.redback.policy.PasswordRuleViolations; +import org.apache.archiva.redback.policy.PasswordRuleViolationException; +import org.apache.archiva.redback.policy.PasswordRuleViolations; import org.codehaus.plexus.redback.system.SecuritySession; import org.codehaus.plexus.redback.system.SecuritySystemConstants; import org.codehaus.redback.integration.interceptor.SecureAction; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractUserCredentialsAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractUserCredentialsAction.java index b9f73407f..c3fae02e8 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractUserCredentialsAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AbstractUserCredentialsAction.java @@ -20,7 +20,7 @@ package org.codehaus.plexus.redback.struts2.action; */ import org.apache.archiva.redback.users.User; -import org.codehaus.plexus.redback.policy.PasswordRuleViolationException; +import org.apache.archiva.redback.policy.PasswordRuleViolationException; import org.codehaus.plexus.redback.rbac.Permission; import org.codehaus.plexus.redback.rbac.RBACManager; import org.codehaus.plexus.redback.rbac.RbacManagerException; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AccountAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AccountAction.java index 4563b2df1..73bd75a4c 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AccountAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/AccountAction.java @@ -21,8 +21,8 @@ package org.codehaus.plexus.redback.struts2.action; 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.apache.archiva.redback.policy.PasswordEncoder; +import org.apache.archiva.redback.policy.PasswordRuleViolationException; import org.codehaus.plexus.redback.system.DefaultSecuritySession; import org.codehaus.plexus.redback.system.SecuritySession; import org.codehaus.plexus.redback.system.SecuritySystemConstants; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java index ccf43e893..53014866d 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java @@ -20,6 +20,7 @@ package org.codehaus.plexus.redback.struts2.action; */ import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.policy.AccountLockedException; import org.apache.archiva.redback.users.User; import org.apache.struts2.ServletActionContext; import org.apache.archiva.redback.authentication.AuthenticationConstants; @@ -31,8 +32,7 @@ import org.apache.archiva.redback.authentication.TokenBasedAuthenticationDataSou import org.apache.archiva.redback.configuration.UserConfiguration; import org.apache.archiva.redback.keys.KeyManagerException; import org.apache.archiva.redback.keys.KeyNotFoundException; -import org.codehaus.plexus.redback.policy.AccountLockedException; -import org.codehaus.plexus.redback.policy.MustChangePasswordException; +import org.apache.archiva.redback.policy.MustChangePasswordException; import org.codehaus.plexus.redback.system.SecuritySession; import org.codehaus.plexus.redback.system.SecuritySystem; import org.apache.archiva.redback.users.UserNotFoundException; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordAction.java index 5bf212dd6..58cef9213 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordAction.java @@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.struts2.action; * under the License. */ +import org.apache.archiva.redback.policy.PasswordEncoder; +import org.apache.archiva.redback.policy.PasswordRuleViolations; 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.apache.archiva.redback.policy.PasswordRuleViolationException; import org.codehaus.plexus.redback.system.SecuritySession; import org.codehaus.plexus.redback.system.SecuritySystem; import org.apache.archiva.redback.users.UserNotFoundException; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java index 81235f95c..81515707b 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java @@ -20,11 +20,11 @@ package org.codehaus.plexus.redback.struts2.action; */ import org.apache.archiva.redback.keys.KeyManager; +import org.apache.archiva.redback.policy.UserSecurityPolicy; import org.apache.archiva.redback.users.UserManager; import org.apache.archiva.redback.users.UserNotFoundException; import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.archiva.redback.keys.KeyManagerException; -import org.codehaus.plexus.redback.policy.UserSecurityPolicy; import org.codehaus.plexus.redback.system.SecuritySystem; import org.apache.archiva.redback.users.User; import org.codehaus.plexus.util.StringUtils; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java index f5873e128..9ec50a4a5 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java @@ -20,9 +20,9 @@ package org.codehaus.plexus.redback.struts2.action; */ import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.policy.UserSecurityPolicy; import org.apache.archiva.redback.users.User; import org.apache.archiva.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.apache.archiva.redback.users.UserManager; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/AddAdminUserAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/AddAdminUserAction.java index 6e009350d..249b9177b 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/AddAdminUserAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/AddAdminUserAction.java @@ -21,14 +21,14 @@ package org.codehaus.plexus.redback.struts2.action.admin; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.configuration.UserConfiguration; +import org.apache.archiva.redback.policy.MustChangePasswordException; import org.apache.archiva.redback.users.UserManager; import org.apache.struts2.ServletActionContext; import org.apache.archiva.redback.authentication.AuthenticationConstants; import org.apache.archiva.redback.authentication.AuthenticationDataSource; import org.apache.archiva.redback.authentication.AuthenticationResult; import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource; -import org.codehaus.plexus.redback.policy.AccountLockedException; -import org.codehaus.plexus.redback.policy.MustChangePasswordException; +import org.apache.archiva.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.role.RoleManager; import org.codehaus.plexus.redback.role.RoleManagerException; import org.codehaus.plexus.redback.struts2.action.AuditEvent; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserCreateAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserCreateAction.java index c3431f427..0042847ba 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserCreateAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserCreateAction.java @@ -21,7 +21,7 @@ package org.codehaus.plexus.redback.struts2.action.admin; import java.util.Arrays; -import org.codehaus.plexus.redback.policy.UserSecurityPolicy; +import org.apache.archiva.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; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditAction.java index 063a4b502..697b9a127 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditAction.java @@ -19,11 +19,11 @@ package org.codehaus.plexus.redback.struts2.action.admin; * under the License. */ +import org.apache.archiva.redback.policy.PasswordEncoder; 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; +import org.apache.archiva.redback.policy.PasswordRuleViolationException; import org.codehaus.plexus.redback.rbac.RBACManager; import org.codehaus.plexus.redback.rbac.RbacManagerException; import org.codehaus.plexus.redback.rbac.Resource; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java index 3677c7e6a..e8c98d2a3 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java @@ -23,12 +23,12 @@ import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.policy.AccountLockedException; +import org.apache.archiva.redback.policy.MustChangePasswordException; import org.apache.struts2.ServletActionContext; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.AuthenticationResult; import org.apache.archiva.redback.authentication.TokenBasedAuthenticationDataSource; -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.system.SecuritySystemConstants; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/PolicyEnforcementInterceptor.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/PolicyEnforcementInterceptor.java index ef2452189..2f516b62c 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/PolicyEnforcementInterceptor.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/PolicyEnforcementInterceptor.java @@ -28,7 +28,7 @@ import javax.servlet.http.HttpServletRequest; import org.apache.archiva.redback.configuration.UserConfiguration; import org.apache.archiva.redback.users.UserManager; import org.apache.struts2.ServletActionContext; -import org.codehaus.plexus.redback.policy.UserSecurityPolicy; +import org.apache.archiva.redback.policy.UserSecurityPolicy; import org.codehaus.plexus.redback.system.DefaultSecuritySession; import org.codehaus.plexus.redback.system.SecuritySession; import org.codehaus.plexus.redback.system.SecuritySystem; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/LoginActionTest.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/LoginActionTest.java index 97b274440..6aa2d5439 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/LoginActionTest.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/LoginActionTest.java @@ -27,15 +27,15 @@ import static org.easymock.EasyMock.verify; import java.util.HashMap; +import org.apache.archiva.redback.policy.DefaultUserSecurityPolicy; +import org.apache.archiva.redback.policy.MustChangePasswordException; +import org.apache.archiva.redback.policy.UserSecurityPolicy; +import org.apache.archiva.redback.policy.UserValidationSettings; import org.apache.archiva.redback.users.UserNotFoundException; import org.apache.archiva.redback.authentication.AuthenticationDataSource; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.AuthenticationResult; -import org.codehaus.plexus.redback.policy.AccountLockedException; -import org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy; -import org.codehaus.plexus.redback.policy.MustChangePasswordException; -import org.codehaus.plexus.redback.policy.UserSecurityPolicy; -import org.codehaus.plexus.redback.policy.UserValidationSettings; +import org.apache.archiva.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.system.DefaultSecuritySession; import org.codehaus.plexus.redback.system.SecuritySession; import org.codehaus.plexus.redback.system.SecuritySystem; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AbstractUserCredentialsActionTest.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AbstractUserCredentialsActionTest.java index cd8b803be..7f92eb33a 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AbstractUserCredentialsActionTest.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AbstractUserCredentialsActionTest.java @@ -20,12 +20,12 @@ package org.codehaus.plexus.redback.struts2.action.admin; */ import net.sf.ehcache.CacheManager; +import org.apache.archiva.redback.policy.AccountLockedException; +import org.apache.archiva.redback.policy.MustChangePasswordException; import org.apache.archiva.redback.users.UserManager; import org.apache.struts2.StrutsSpringTestCase; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource; -import org.codehaus.plexus.redback.policy.AccountLockedException; -import org.codehaus.plexus.redback.policy.MustChangePasswordException; import org.codehaus.plexus.redback.rbac.RBACManager; import org.codehaus.plexus.redback.rbac.RbacManagerException; import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.java index 9bdc2e315..bf319e3a6 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.java @@ -25,8 +25,7 @@ import com.opensymphony.xwork2.ActionProxy; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.users.UserNotFoundException; import org.apache.archiva.redback.authorization.AuthorizationResult; -import org.codehaus.plexus.redback.policy.AccountLockedException; -import org.codehaus.plexus.redback.policy.MustChangePasswordException; +import org.apache.archiva.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.rbac.RbacManagerException; import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException; import org.codehaus.plexus.redback.rbac.Role; @@ -489,7 +488,7 @@ public class AssignmentsActionTest * Check security - show should succeed and display all roles, even without 'user-management-role-grant' or * 'user-management-user-role' for the user administrators. * - * @throws MustChangePasswordException + * @throws org.apache.archiva.redback.policy.MustChangePasswordException */ @Test public void testSystemAdminCanShowRoles() diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.java index 289ab54a2..25c432ea7 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/java/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.java @@ -21,11 +21,11 @@ package org.codehaus.plexus.redback.struts2.action.admin; import com.opensymphony.xwork2.Action; import org.apache.archiva.redback.authentication.AuthenticationException; +import org.apache.archiva.redback.policy.AccountLockedException; import org.apache.archiva.redback.users.User; import org.apache.archiva.redback.users.UserNotFoundException; import org.apache.archiva.redback.authentication.AuthenticationResult; -import org.codehaus.plexus.redback.policy.AccountLockedException; -import org.codehaus.plexus.redback.policy.MustChangePasswordException; +import org.apache.archiva.redback.policy.MustChangePasswordException; import org.codehaus.plexus.redback.rbac.RbacManagerException; import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException; import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException; |