]> source.dussan.org Git - archiva.git/commitdiff
change the class name as it is very redback centric
authorOlivier Lamy <olamy@apache.org>
Wed, 5 Dec 2012 17:23:02 +0000 (17:23 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 5 Dec 2012 17:23:02 +0000 (17:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1417540 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/ArchivaRuntimeConfiguration.java
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/runtime/DefaultArchivaRuntimeConfigurationAdmin.java

index f900af95acb39fa29dff3a473621e3e19a6f093a..f6f497d1738b88237db2cb3bd020019ba5138b4d 100644 (file)
           </description>
         </field>
         <field>
-          <name>runtimeConfiguration</name>
+          <name>redbackRuntimeConfiguration</name>
           <version>1.4.0+</version>
           <association>
-            <type>RuntimeConfiguration</type>
+            <type>RedbackRuntimeConfiguration</type>
             <multiplicity>1</multiplicity>
           </association>
-          <description>
-            The RuntimeConfiguration.
-          </description>
+          <description>The RedbackRuntimeConfiguration.</description>
         </field>
         <field>
           <name>proxyConnectorRuleConfigurations</name>
     </class>
 
     <class>
-      <name>RuntimeConfiguration</name>
+      <name>RedbackRuntimeConfiguration</name>
       <version>1.4.0+</version>
       <description>
         The runtime configuration.
index aada4b2f295b19b3fbec25e06e363675ae08f463..272316bb58757a60b20425f1c3916003157fd7aa 100644 (file)
@@ -26,7 +26,7 @@ import org.apache.archiva.admin.model.runtime.ArchivaRuntimeConfigurationAdmin;
 import org.apache.archiva.admin.repository.AbstractRepositoryAdmin;
 import org.apache.archiva.configuration.Configuration;
 import org.apache.archiva.configuration.IndeterminateConfigurationException;
-import org.apache.archiva.configuration.RuntimeConfiguration;
+import org.apache.archiva.configuration.RedbackRuntimeConfiguration;
 import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.archiva.redback.configuration.UserConfiguration;
 import org.apache.commons.lang.StringUtils;
@@ -96,15 +96,15 @@ public class DefaultArchivaRuntimeConfigurationAdmin
     public ArchivaRuntimeConfiguration getArchivaRuntimeConfiguration()
         throws RepositoryAdminException
     {
-        return build( getArchivaConfiguration().getConfiguration().getRuntimeConfiguration() );
+        return build( getArchivaConfiguration().getConfiguration().getRedbackRuntimeConfiguration() );
     }
 
     public void updateArchivaRuntimeConfiguration( ArchivaRuntimeConfiguration archivaRuntimeConfiguration )
         throws RepositoryAdminException
     {
-        RuntimeConfiguration runtimeConfiguration = build( archivaRuntimeConfiguration );
+        RedbackRuntimeConfiguration runtimeConfiguration = build( archivaRuntimeConfiguration );
         Configuration configuration = getArchivaConfiguration().getConfiguration();
-        configuration.setRuntimeConfiguration( runtimeConfiguration );
+        configuration.setRedbackRuntimeConfiguration( runtimeConfiguration );
         try
         {
             getArchivaConfiguration().save( configuration );
@@ -119,13 +119,13 @@ public class DefaultArchivaRuntimeConfigurationAdmin
         }
     }
 
-    private ArchivaRuntimeConfiguration build( RuntimeConfiguration runtimeConfiguration )
+    private ArchivaRuntimeConfiguration build( RedbackRuntimeConfiguration runtimeConfiguration )
     {
         return new BeanReplicator().replicateBean( runtimeConfiguration, ArchivaRuntimeConfiguration.class );
     }
 
-    private RuntimeConfiguration build( ArchivaRuntimeConfiguration archivaRuntimeConfiguration )
+    private RedbackRuntimeConfiguration build( ArchivaRuntimeConfiguration archivaRuntimeConfiguration )
     {
-        return new BeanReplicator().replicateBean( archivaRuntimeConfiguration, RuntimeConfiguration.class );
+        return new BeanReplicator().replicateBean( archivaRuntimeConfiguration, RedbackRuntimeConfiguration.class );
     }
 }