You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserInterfaceOptions.java 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. package org.apache.archiva.configuration;
  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. *
  22. * The user interface configuration settings.
  23. *
  24. *
  25. * @version $Revision$ $Date$
  26. */
  27. @SuppressWarnings( "all" )
  28. public class UserInterfaceOptions
  29. implements java.io.Serializable
  30. {
  31. //--------------------------/
  32. //- Class/Member Variables -/
  33. //--------------------------/
  34. /**
  35. * true if find artifacts should be enabled.
  36. */
  37. private boolean showFindArtifacts = true;
  38. /**
  39. * true if applet behavior for find artifacts should be enabled.
  40. */
  41. private boolean appletFindEnabled = true;
  42. /**
  43. * Field disableEasterEggs.
  44. */
  45. private boolean disableEasterEggs = false;
  46. /**
  47. * Field applicationUrl.
  48. */
  49. private String applicationUrl;
  50. /**
  51. * Field disableRegistration.
  52. */
  53. private boolean disableRegistration = false;
  54. //-----------/
  55. //- Methods -/
  56. //-----------/
  57. /**
  58. * Get the applicationUrl field.
  59. *
  60. * @return String
  61. */
  62. public String getApplicationUrl()
  63. {
  64. return this.applicationUrl;
  65. } //-- String getApplicationUrl()
  66. /**
  67. * Get true if applet behavior for find artifacts should be
  68. * enabled.
  69. *
  70. * @return boolean
  71. */
  72. public boolean isAppletFindEnabled()
  73. {
  74. return this.appletFindEnabled;
  75. } //-- boolean isAppletFindEnabled()
  76. /**
  77. * Get the disableEasterEggs field.
  78. *
  79. * @return boolean
  80. */
  81. public boolean isDisableEasterEggs()
  82. {
  83. return this.disableEasterEggs;
  84. } //-- boolean isDisableEasterEggs()
  85. /**
  86. * Get the disableRegistration field.
  87. *
  88. * @return boolean
  89. */
  90. public boolean isDisableRegistration()
  91. {
  92. return this.disableRegistration;
  93. } //-- boolean isDisableRegistration()
  94. /**
  95. * Get true if find artifacts should be enabled.
  96. *
  97. * @return boolean
  98. */
  99. public boolean isShowFindArtifacts()
  100. {
  101. return this.showFindArtifacts;
  102. } //-- boolean isShowFindArtifacts()
  103. /**
  104. * Set true if applet behavior for find artifacts should be
  105. * enabled.
  106. *
  107. * @param appletFindEnabled
  108. */
  109. public void setAppletFindEnabled( boolean appletFindEnabled )
  110. {
  111. this.appletFindEnabled = appletFindEnabled;
  112. } //-- void setAppletFindEnabled( boolean )
  113. /**
  114. * Set the applicationUrl field.
  115. *
  116. * @param applicationUrl
  117. */
  118. public void setApplicationUrl( String applicationUrl )
  119. {
  120. this.applicationUrl = applicationUrl;
  121. } //-- void setApplicationUrl( String )
  122. /**
  123. * Set the disableEasterEggs field.
  124. *
  125. * @param disableEasterEggs
  126. */
  127. public void setDisableEasterEggs( boolean disableEasterEggs )
  128. {
  129. this.disableEasterEggs = disableEasterEggs;
  130. } //-- void setDisableEasterEggs( boolean )
  131. /**
  132. * Set the disableRegistration field.
  133. *
  134. * @param disableRegistration
  135. */
  136. public void setDisableRegistration( boolean disableRegistration )
  137. {
  138. this.disableRegistration = disableRegistration;
  139. } //-- void setDisableRegistration( boolean )
  140. /**
  141. * Set true if find artifacts should be enabled.
  142. *
  143. * @param showFindArtifacts
  144. */
  145. public void setShowFindArtifacts( boolean showFindArtifacts )
  146. {
  147. this.showFindArtifacts = showFindArtifacts;
  148. } //-- void setShowFindArtifacts( boolean )
  149. }