aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base
diff options
context:
space:
mode:
authorJoakim Erdfelt <joakime@apache.org>2007-10-15 20:39:39 +0000
committerJoakim Erdfelt <joakime@apache.org>2007-10-15 20:39:39 +0000
commit4914303c3d0bdc44e467aea31ee2e54fd791bd5f (patch)
tree2c4dd30576dd8eaf77c13bc49b1f3d9b3b296530 /archiva-base
parent05f78c6d4200365b38a3ee2fa9f57f25680d8c75 (diff)
downloadarchiva-4914303c3d0bdc44e467aea31ee2e54fd791bd5f.tar.gz
archiva-4914303c3d0bdc44e467aea31ee2e54fd791bd5f.zip
[MRM-398] configure guest access by default for pre-configured repositories
Reverted partially r584279. (some good fixes for related bugs in place) Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584905 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base')
-rwxr-xr-xarchiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/MockConfiguration.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/MockConfiguration.java b/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/MockConfiguration.java
index 393eb743b..c68298c5a 100755
--- a/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/MockConfiguration.java
+++ b/archiva-base/archiva-repository-layer/src/test/java/org/apache/maven/archiva/repository/MockConfiguration.java
@@ -27,10 +27,7 @@ import org.codehaus.plexus.registry.RegistryException;
import org.codehaus.plexus.registry.RegistryListener;
import org.easymock.MockControl;
-import java.util.ArrayList;
import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
import java.util.Set;
/**
@@ -100,4 +97,9 @@ public class MockConfiguration
{
configListeners.remove( listener );
}
+
+ public boolean isDefaulted()
+ {
+ return false;
+ }
}