aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base
diff options
context:
space:
mode:
authorJoakim Erdfelt <joakime@apache.org>2007-10-15 20:39:42 +0000
committerJoakim Erdfelt <joakime@apache.org>2007-10-15 20:39:42 +0000
commitf19ca1f500b88a0c8c98ef6f8106e13db12761ad (patch)
treeca8655a66d2f85b303bae2d445f58b1bdd2c2dae /archiva-base
parent4914303c3d0bdc44e467aea31ee2e54fd791bd5f (diff)
downloadarchiva-f19ca1f500b88a0c8c98ef6f8106e13db12761ad.tar.gz
archiva-f19ca1f500b88a0c8c98ef6f8106e13db12761ad.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@584906 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base')
-rw-r--r--archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java b/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java
index d4a123a62..89f19599c 100644
--- a/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java
+++ b/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java
@@ -96,4 +96,9 @@ public class MockConfiguration implements ArchivaConfiguration
{
configListeners.remove( listener );
}
+
+ public boolean isDefaulted()
+ {
+ return false;
+ }
}