This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.admin.model.beans;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021import javax.xml.bind.annotation.XmlRootElement;
022
023/**
024 * @author Olivier Lamy
025 * @since 1.4-M1
026 */
027@XmlRootElement( name = "uiConfiguration" )
028public class UiConfiguration
029{
030    /**
031     * true if find artifacts should be enabled.
032     */
033    private boolean showFindArtifacts = true;
034
035    /**
036     * true if applet behavior for find artifacts should be enabled.
037     */
038    private boolean appletFindEnabled = true;
039
040    /**
041     * Field disableEasterEggs.
042     */
043    private boolean disableEasterEggs = false;
044
045    /**
046     * @since 1.4-M3
047     */
048    private String applicationUrl;
049
050    /**
051     * @since 1.4-M3
052     */
053    private boolean disableRegistration = false;
054
055    public UiConfiguration()
056    {
057        // noop
058    }
059
060    public boolean isShowFindArtifacts()
061    {
062        return showFindArtifacts;
063    }
064
065    public void setShowFindArtifacts( boolean showFindArtifacts )
066    {
067        this.showFindArtifacts = showFindArtifacts;
068    }
069
070    public boolean isAppletFindEnabled()
071    {
072        return appletFindEnabled;
073    }
074
075    public void setAppletFindEnabled( boolean appletFindEnabled )
076    {
077        this.appletFindEnabled = appletFindEnabled;
078    }
079
080    public boolean isDisableEasterEggs()
081    {
082        return disableEasterEggs;
083    }
084
085    public void setDisableEasterEggs( boolean disableEasterEggs )
086    {
087        this.disableEasterEggs = disableEasterEggs;
088    }
089
090    public String getApplicationUrl()
091    {
092        return applicationUrl;
093    }
094
095    public void setApplicationUrl( String applicationUrl )
096    {
097        this.applicationUrl = applicationUrl;
098    }
099
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}