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 * Archiva default settings. 025 * 026 * 027 * @version $Revision$ $Date$ 028 */ 029@SuppressWarnings( "all" ) 030public class ArchivaDefaultConfiguration 031 implements java.io.Serializable 032{ 033 034 //--------------------------/ 035 //- Class/Member Variables -/ 036 //--------------------------/ 037 038 /** 039 * Field defaultCheckPaths. 040 */ 041 private java.util.List<RepositoryCheckPath> defaultCheckPaths; 042 043 044 //-----------/ 045 //- Methods -/ 046 //-----------/ 047 048 /** 049 * Method addDefaultCheckPath. 050 * 051 * @param repositoryCheckPath 052 */ 053 public void addDefaultCheckPath( RepositoryCheckPath repositoryCheckPath ) 054 { 055 getDefaultCheckPaths().add( repositoryCheckPath ); 056 } //-- void addDefaultCheckPath( RepositoryCheckPath ) 057 058 /** 059 * Method getDefaultCheckPaths. 060 * 061 * @return List 062 */ 063 public java.util.List<RepositoryCheckPath> getDefaultCheckPaths() 064 { 065 if ( this.defaultCheckPaths == null ) 066 { 067 this.defaultCheckPaths = new java.util.ArrayList<RepositoryCheckPath>(); 068 } 069 070 return this.defaultCheckPaths; 071 } //-- java.util.List<RepositoryCheckPath> getDefaultCheckPaths() 072 073 /** 074 * Method removeDefaultCheckPath. 075 * 076 * @param repositoryCheckPath 077 */ 078 public void removeDefaultCheckPath( RepositoryCheckPath repositoryCheckPath ) 079 { 080 getDefaultCheckPaths().remove( repositoryCheckPath ); 081 } //-- void removeDefaultCheckPath( RepositoryCheckPath ) 082 083 /** 084 * Set the default check paths for certain remote repositories. 085 * 086 * @param defaultCheckPaths 087 */ 088 public void setDefaultCheckPaths( java.util.List<RepositoryCheckPath> defaultCheckPaths ) 089 { 090 this.defaultCheckPaths = defaultCheckPaths; 091 } //-- void setDefaultCheckPaths( java.util.List ) 092 093}