This project has retired. For details please refer to its Attic page.
UiConfiguration xref
View Javadoc
1   package org.apache.archiva.admin.model.beans;
2   /*
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   */
20  
21  import javax.xml.bind.annotation.XmlRootElement;
22  
23  /**
24   * @author Olivier Lamy
25   * @since 1.4-M1
26   */
27  @XmlRootElement( name = "uiConfiguration" )
28  public class UiConfiguration
29  {
30      /**
31       * true if find artifacts should be enabled.
32       */
33      private boolean showFindArtifacts = true;
34  
35      /**
36       * true if applet behavior for find artifacts should be enabled.
37       */
38      private boolean appletFindEnabled = true;
39  
40      /**
41       * Field disableEasterEggs.
42       */
43      private boolean disableEasterEggs = false;
44  
45      /**
46       * @since 1.4-M3
47       */
48      private String applicationUrl;
49  
50      /**
51       * @since 1.4-M3
52       */
53      private boolean disableRegistration = false;
54  
55      public UiConfiguration()
56      {
57          // noop
58      }
59  
60      public boolean isShowFindArtifacts()
61      {
62          return showFindArtifacts;
63      }
64  
65      public void setShowFindArtifacts( boolean showFindArtifacts )
66      {
67          this.showFindArtifacts = showFindArtifacts;
68      }
69  
70      public boolean isAppletFindEnabled()
71      {
72          return appletFindEnabled;
73      }
74  
75      public void setAppletFindEnabled( boolean appletFindEnabled )
76      {
77          this.appletFindEnabled = appletFindEnabled;
78      }
79  
80      public boolean isDisableEasterEggs()
81      {
82          return disableEasterEggs;
83      }
84  
85      public void setDisableEasterEggs( boolean disableEasterEggs )
86      {
87          this.disableEasterEggs = disableEasterEggs;
88      }
89  
90      public String getApplicationUrl()
91      {
92          return applicationUrl;
93      }
94  
95      public void setApplicationUrl( String applicationUrl )
96      {
97          this.applicationUrl = applicationUrl;
98      }
99  
100     public boolean isDisableRegistration()
101     {
102         return disableRegistration;
103     }
104 
105     public void setDisableRegistration( boolean disableRegistration )
106     {
107         this.disableRegistration = disableRegistration;
108     }
109 
110     @Override
111     public String toString()
112     {
113         final StringBuilder sb = new StringBuilder();
114         sb.append( "UiConfiguration" );
115         sb.append( "{showFindArtifacts=" ).append( showFindArtifacts );
116         sb.append( ", appletFindEnabled=" ).append( appletFindEnabled );
117         sb.append( ", disableEasterEggs=" ).append( disableEasterEggs );
118         sb.append( ", applicationUrl='" ).append( applicationUrl ).append( '\'' );
119         sb.append( ", disableRegistration=" ).append( disableRegistration );
120         sb.append( '}' );
121         return sb.toString();
122     }
123 }