001package org.apache.archiva.configuration; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022/** 023 * 024 * The user interface configuration settings. 025 * 026 * 027 * @version $Revision$ $Date$ 028 */ 029@SuppressWarnings( "all" ) 030public class UserInterfaceOptions 031 implements java.io.Serializable 032{ 033 034 //--------------------------/ 035 //- Class/Member Variables -/ 036 //--------------------------/ 037 038 /** 039 * true if find artifacts should be enabled. 040 */ 041 private boolean showFindArtifacts = true; 042 043 /** 044 * true if applet behavior for find artifacts should be enabled. 045 */ 046 private boolean appletFindEnabled = true; 047 048 /** 049 * Field disableEasterEggs. 050 */ 051 private boolean disableEasterEggs = false; 052 053 /** 054 * Field applicationUrl. 055 */ 056 private String applicationUrl; 057 058 /** 059 * Field disableRegistration. 060 */ 061 private boolean disableRegistration = false; 062 063 064 //-----------/ 065 //- Methods -/ 066 //-----------/ 067 068 /** 069 * Get the applicationUrl field. 070 * 071 * @return String 072 */ 073 public String getApplicationUrl() 074 { 075 return this.applicationUrl; 076 } //-- String getApplicationUrl() 077 078 /** 079 * Get true if applet behavior for find artifacts should be 080 * enabled. 081 * 082 * @return boolean 083 */ 084 public boolean isAppletFindEnabled() 085 { 086 return this.appletFindEnabled; 087 } //-- boolean isAppletFindEnabled() 088 089 /** 090 * Get the disableEasterEggs field. 091 * 092 * @return boolean 093 */ 094 public boolean isDisableEasterEggs() 095 { 096 return this.disableEasterEggs; 097 } //-- boolean isDisableEasterEggs() 098 099 /** 100 * Get the disableRegistration field. 101 * 102 * @return boolean 103 */ 104 public boolean isDisableRegistration() 105 { 106 return this.disableRegistration; 107 } //-- boolean isDisableRegistration() 108 109 /** 110 * Get true if find artifacts should be enabled. 111 * 112 * @return boolean 113 */ 114 public boolean isShowFindArtifacts() 115 { 116 return this.showFindArtifacts; 117 } //-- boolean isShowFindArtifacts() 118 119 /** 120 * Set true if applet behavior for find artifacts should be 121 * enabled. 122 * 123 * @param appletFindEnabled 124 */ 125 public void setAppletFindEnabled( boolean appletFindEnabled ) 126 { 127 this.appletFindEnabled = appletFindEnabled; 128 } //-- void setAppletFindEnabled( boolean ) 129 130 /** 131 * Set the applicationUrl field. 132 * 133 * @param applicationUrl 134 */ 135 public void setApplicationUrl( String applicationUrl ) 136 { 137 this.applicationUrl = applicationUrl; 138 } //-- void setApplicationUrl( String ) 139 140 /** 141 * Set the disableEasterEggs field. 142 * 143 * @param disableEasterEggs 144 */ 145 public void setDisableEasterEggs( boolean disableEasterEggs ) 146 { 147 this.disableEasterEggs = disableEasterEggs; 148 } //-- void setDisableEasterEggs( boolean ) 149 150 /** 151 * Set the disableRegistration field. 152 * 153 * @param disableRegistration 154 */ 155 public void setDisableRegistration( boolean disableRegistration ) 156 { 157 this.disableRegistration = disableRegistration; 158 } //-- void setDisableRegistration( boolean ) 159 160 /** 161 * Set true if find artifacts should be enabled. 162 * 163 * @param showFindArtifacts 164 */ 165 public void setShowFindArtifacts( boolean showFindArtifacts ) 166 { 167 this.showFindArtifacts = showFindArtifacts; 168 } //-- void setShowFindArtifacts( boolean ) 169 170}