]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1629] Add a configuration field for the application url.
authorOlivier Lamy <olamy@apache.org>
Thu, 24 May 2012 21:59:40 +0000 (21:59 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 24 May 2012 21:59:40 +0000 (21:59 +0000)
add necessary mdo changes.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342456 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/UiConfiguration.java

index 2158d809ec7169d0440ab1e24d83ccbdcc7f0bda..b47ad1015e93744367a0b3d0021c78dbfbde9ce6 100644 (file)
           <type>boolean</type>
           <defaultValue>false</defaultValue>
         </field>
+        <field>
+          <name>applicationUrl</name>
+          <version>1.4.0+</version>
+          <type>String</type>
+        </field>
       </fields>
     </class>
 
index 80d76ae04c714d5897d52104b95981d9550e63aa..a2c00e49fdc8c854bd03bb0fd5b3c405e73c71e2 100644 (file)
@@ -42,6 +42,11 @@ public class UiConfiguration
      */
     private boolean disableEasterEggs = false;
 
+    /**
+     * @since 1.4-M3
+     */
+    private String applicationUrl;
+
     public UiConfiguration()
     {
         // noop
@@ -76,4 +81,27 @@ public class UiConfiguration
     {
         this.disableEasterEggs = disableEasterEggs;
     }
+
+    public String getApplicationUrl()
+    {
+        return applicationUrl;
+    }
+
+    public void setApplicationUrl( String applicationUrl )
+    {
+        this.applicationUrl = applicationUrl;
+    }
+
+    @Override
+    public String toString()
+    {
+        final StringBuilder sb = new StringBuilder();
+        sb.append( "UiConfiguration" );
+        sb.append( "{showFindArtifacts=" ).append( showFindArtifacts );
+        sb.append( ", appletFindEnabled=" ).append( appletFindEnabled );
+        sb.append( ", disableEasterEggs=" ).append( disableEasterEggs );
+        sb.append( ", applicationUrl='" ).append( applicationUrl ).append( '\'' );
+        sb.append( '}' );
+        return sb.toString();
+    }
 }