archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1417541 - in /archiva/trunk/archiva-modules/archiva-base: archiva-configuration/src/main/mdo/ archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/
Date Wed, 05 Dec 2012 17:23:31 GMT
Author: olamy
Date: Wed Dec  5 17:23:31 2012
New Revision: 1417541

URL: http://svn.apache.org/viewvc?rev=1417541&view=rev
Log:
add a field for extra properties

Modified:
    archiva/trunk/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
    archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/ArchivaRuntimeConfiguration.java

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo?rev=1417541&r1=1417540&r2=1417541&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
Wed Dec  5 17:23:31 2012
@@ -1474,6 +1474,16 @@
             <type>LdapConfiguration</type>
           </association>
         </field>
+        <field>
+          <name>configurationProperties</name>
+          <description>extra properties for redback configuration. String/String</description>
+          <version>1.4.0+</version>
+          <type>Map</type>
+          <association xml.mapStyle="inline">
+            <type>String</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
       </fields>
     </class>
 

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/ArchivaRuntimeConfiguration.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/ArchivaRuntimeConfiguration.java?rev=1417541&r1=1417540&r2=1417541&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/ArchivaRuntimeConfiguration.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/ArchivaRuntimeConfiguration.java
Wed Dec  5 17:23:31 2012
@@ -20,6 +20,8 @@ package org.apache.archiva.admin.model.b
 
 import javax.xml.bind.annotation.XmlRootElement;
 import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
 
 /**
  * @author Olivier Lamy
@@ -38,6 +40,8 @@ public class ArchivaRuntimeConfiguration
      */
     private boolean migratedFromRedbackConfiguration = false;
 
+    private Map<String, String> configurationProperties;
+
     public ArchivaRuntimeConfiguration()
     {
         // no op
@@ -73,6 +77,20 @@ public class ArchivaRuntimeConfiguration
         this.migratedFromRedbackConfiguration = migratedFromRedbackConfiguration;
     }
 
+    public Map<String, String> getConfigurationProperties()
+    {
+        if ( this.configurationProperties == null )
+        {
+            this.configurationProperties = new HashMap<String, String>();
+        }
+        return configurationProperties;
+    }
+
+    public void setConfigurationProperties( Map<String, String> configurationProperties
)
+    {
+        this.configurationProperties = configurationProperties;
+    }
+
     @Override
     public String toString()
     {
@@ -80,6 +98,7 @@ public class ArchivaRuntimeConfiguration
             "userManagerImpl='" + userManagerImpl + '\'' +
             ", archivaLdapConfiguration=" + archivaLdapConfiguration +
             ", migratedFromRedbackConfiguration=" + migratedFromRedbackConfiguration +
+            ", configurationProperties=" + configurationProperties +
             '}';
     }
 }



Mime
View raw message