aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorolivier lamy <olamy@apache.org>2017-05-26 12:04:44 +1000
committerolivier lamy <olamy@apache.org>2017-05-26 12:04:44 +1000
commit4b6131e8bab59139d0558ed6d932d683cdfdbcab (patch)
tree451890a6fdedde364915d05828ee21ebe327bbba /archiva-modules/archiva-base
parentb77921b7c0f544e16e605b55348923cc027a122b (diff)
downloadarchiva-4b6131e8bab59139d0558ed6d932d683cdfdbcab.tar.gz
archiva-4b6131e8bab59139d0558ed6d932d683cdfdbcab.zip
take of default now jpa, jdo not exists anymore so handle migration
Signed-off-by: olivier lamy <olamy@apache.org>
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml2
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/runtime/RedbackRuntimeConfigurationAdmin.java4
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java8
3 files changed, 11 insertions, 3 deletions
diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml b/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml
index 877b6a59b..88beda2e0 100644
--- a/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml
+++ b/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml
@@ -144,7 +144,7 @@
<redbackRuntimeConfiguration>
<userManagerImpls>
- <userManagerImpl>jdo</userManagerImpl>
+ <userManagerImpl>jpa</userManagerImpl>
</userManagerImpls>
<rbacManagerImpls>
<rbacManagerImpl>cached</rbacManagerImpl>
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/runtime/RedbackRuntimeConfigurationAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/runtime/RedbackRuntimeConfigurationAdmin.java
index 8fae6a66a..c124eacbe 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/runtime/RedbackRuntimeConfigurationAdmin.java
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/runtime/RedbackRuntimeConfigurationAdmin.java
@@ -28,9 +28,9 @@ import org.apache.archiva.admin.model.beans.RedbackRuntimeConfiguration;
public interface RedbackRuntimeConfigurationAdmin
{
- static final String DEFAULT_RBAC_MANAGER_IMPL = "jdo";
+ String DEFAULT_RBAC_MANAGER_IMPL = "jpa";
- static final String DEFAULT_USER_MANAGER_IMPL = "jdo";
+ String DEFAULT_USER_MANAGER_IMPL = "jpa";
RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
throws RepositoryAdminException;
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
index 3ce727c71..ebd8a64e0 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultRedbackRuntimeConfigurationAdmin.java
@@ -100,6 +100,10 @@ public class DefaultRedbackRuntimeConfigurationAdmin
String[] impls = StringUtils.split( userManagerImpl, ',' );
for ( String impl : impls )
{
+ if (StringUtils.equalsIgnoreCase( "jdo", impl ))
+ {
+ impl = DEFAULT_USER_MANAGER_IMPL;
+ }
redbackRuntimeConfiguration.getUserManagerImpls().add( impl );
}
}
@@ -117,6 +121,10 @@ public class DefaultRedbackRuntimeConfigurationAdmin
String[] impls = StringUtils.split( rbacManagerImpls, ',' );
for ( String impl : impls )
{
+ if (StringUtils.equalsIgnoreCase( "jdo", impl ))
+ {
+ impl = DEFAULT_RBAC_MANAGER_IMPL;
+ }
redbackRuntimeConfiguration.getRbacManagerImpls().add( impl );
}
}