mirror of https://github.com/apache/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
This commit is contained in:
parent
1d359faadb
commit
8d5fdbb102
|
@ -1303,6 +1303,11 @@
|
|||
<type>boolean</type>
|
||||
<defaultValue>false</defaultValue>
|
||||
</field>
|
||||
<field>
|
||||
<name>applicationUrl</name>
|
||||
<version>1.4.0+</version>
|
||||
<type>String</type>
|
||||
</field>
|
||||
</fields>
|
||||
</class>
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue