From: Olivier Lamy Date: Thu, 24 May 2012 21:59:40 +0000 (+0000) Subject: [MRM-1629] Add a configuration field for the application url. X-Git-Tag: archiva-1.4-M3~683 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8d5fdbb102c559391b167de6c2aeb28f72c93510;p=archiva.git [MRM-1629] Add a configuration field for the application url. add necessary mdo changes. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342456 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo index 2158d809e..b47ad1015 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo @@ -1303,6 +1303,11 @@ boolean false + + applicationUrl + 1.4.0+ + String + diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/UiConfiguration.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/UiConfiguration.java index 80d76ae04..a2c00e49f 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/UiConfiguration.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/UiConfiguration.java @@ -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(); + } }