aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-11-23 10:11:07 +0000
committerOlivier Lamy <olamy@apache.org>2012-11-23 10:11:07 +0000
commit57fa59aede6c3383c8886414339ad910eb2b8365 (patch)
tree1dc64c5fdb64a530fa462180b05e89e2bc038ea3 /archiva-modules/archiva-web
parent457c6bb31c79a5c52afd6b48e93a709667a12104 (diff)
downloadarchiva-57fa59aede6c3383c8886414339ad910eb2b8365.tar.gz
archiva-57fa59aede6c3383c8886414339ad910eb2b8365.zip
[MRM-1714] using LDAP can be configurable with the ui.
prepare redback git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412809 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java34
1 files changed, 19 insertions, 15 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
index 718b00e88..7100025b2 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
@@ -19,22 +19,22 @@ package org.apache.archiva.web.rss;
* under the License.
*/
-import org.apache.archiva.redback.keys.KeyManager;
-import org.apache.archiva.redback.policy.AccountLockedException;
-import org.apache.archiva.redback.policy.UserSecurityPolicy;
-import org.apache.archiva.redback.users.User;
-import org.apache.archiva.redback.users.UserManager;
-import org.apache.archiva.redback.users.UserManagerListener;
-import org.apache.archiva.redback.users.UserNotFoundException;
-import org.apache.archiva.redback.users.UserQuery;
import org.apache.archiva.redback.authentication.AuthenticationDataSource;
import org.apache.archiva.redback.authentication.AuthenticationException;
import org.apache.archiva.redback.authentication.AuthenticationResult;
import org.apache.archiva.redback.authorization.AuthorizationException;
import org.apache.archiva.redback.authorization.AuthorizationResult;
+import org.apache.archiva.redback.keys.KeyManager;
+import org.apache.archiva.redback.policy.AccountLockedException;
+import org.apache.archiva.redback.policy.UserSecurityPolicy;
import org.apache.archiva.redback.system.DefaultSecuritySession;
import org.apache.archiva.redback.system.SecuritySession;
import org.apache.archiva.redback.system.SecuritySystem;
+import org.apache.archiva.redback.users.User;
+import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManagerListener;
+import org.apache.archiva.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserQuery;
import org.apache.archiva.redback.users.jdo.JdoUser;
import java.util.ArrayList;
@@ -45,8 +45,6 @@ import java.util.Map;
/**
* SecuritySystem stub used for testing.
- *
- *
*/
public class SecuritySystemStub
implements SecuritySystem
@@ -131,29 +129,35 @@ public class SecuritySystemStub
{
return new UserManager()
{
+
+ public void initialize()
+ {
+ // no op
+ }
+
public boolean isReadOnly()
{
- return false; //To change body of implemented methods use File | Settings | File Templates.
+ return false;
}
public String getId()
{
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
public void addUserManagerListener( UserManagerListener listener )
{
- //To change body of implemented methods use File | Settings | File Templates.
+ // no op
}
public void removeUserManagerListener( UserManagerListener listener )
{
- //To change body of implemented methods use File | Settings | File Templates.
+ // no op
}
public User createUser( String username, String fullName, String emailAddress )
{
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
public User createGuestUser()