]> source.dussan.org Git - archiva.git/commitdiff
add a field for extra properties
authorOlivier Lamy <olamy@apache.org>
Wed, 5 Dec 2012 17:23:31 +0000 (17:23 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 5 Dec 2012 17:23:31 +0000 (17:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1417541 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

index f6f497d1738b88237db2cb3bd020019ba5138b4d..7d1d5713ad31f7354057ef8f8a9e736705f50ec8 100644 (file)
             <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>
 
index 61286183fb5446c2e92cc2beb244e7056850566d..7829056ed95858df2ed5b149ff1e34028670f970 100644 (file)
@@ -20,6 +20,8 @@ package org.apache.archiva.admin.model.beans;
 
 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 +
             '}';
     }
 }